derenrich / borked-bot

wikidata bot doing lots of disparate things
GNU General Public License v3.0
9 stars 2 forks source link

Update Youtube channel views along with subscriber count #9

Open gurchik opened 8 months ago

gurchik commented 8 months ago

On the English Wikipedia, the infobox for Youtubers display a subscriber count and the number of channel views. But it looks like BorkedBot doesn't update the latter, when searching on WikiData it looks like channels either don't have this number at all or it's very outdated (multiple years).

When updating the subscriber count, we also have the number of channel views, it's given in the same API response (viewCount). So it would be nice if we could update both at the same time. https://github.com/derenrich/borked-bot/blob/master/borked_bot/yt_follows/run.py#L124

derenrich commented 8 months ago

the main issue here is that there is no current consensus on wikidata for how to represent the information for "number of views". the data you are seeing currently there is done in a way that people generally aren't fond of (because it provides no way to version it over time). if you can get agreement on how to represent this on wikidata then this can be done. the obvious thing to do is to repurpose P5436 and use it exactly the same as subscriber count. we could reach such consensus by making a thread at RfP similar to https://www.wikidata.org/wiki/Wikidata:Requests_for_permissions/Bot/BorkedBot_6

gurchik commented 8 months ago

Do you want me to make that RfP, or does it make more sense for you to do it? If the latter, do you want me to write it for you at least and you can review it and submit it?

derenrich commented 8 months ago

I can do the RfP. I'll ping you on it.

gurchik commented 8 months ago

@derenrich did you ever end up making this RfP? I saw one for Twitch but wasn't sure if you made this one.

derenrich commented 8 months ago

oh i think I confused the RfP for view count with the Twitch thing. i'll do the other one now

gurchik commented 8 months ago

Thanks. Quick update on this: looks like the RfP was approved.