Wikipedia:Bots/Requests for approval/YoutubeSubscriberBot
New to bots on Wikipedia? Read these primers!
- Approval process – How this discussion works
- Overview/Policy – What bots are/What they can (or can't) do
- Dictionary – Explains bot-related jargon
Operator: EncodedRainbow (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 13:04, Wednesday, September 2, 2020 (UTC)
Function overview: This bot will automatically edit the page of YouTubers' pages with accurate subscriber information periodically.
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python
Source code available: https://github.com/TisTiller/WikipediaYoutubeSubscriptionBot
Links to relevant discussions (where appropriate): Non-controversial, maintenance edit.
Edit period(s): Daily or Weekly
Estimated number of pages affected: ~200 Current Pages: List of YouTubers
Namespace(s): Articles
Exclusion compliant (Yes/No): Yes
Function details: One (or two) purpose(s).
1: Periodically update the subscription counter for each youtubers' channel(s). Information requested directly from google using an API. Once per (day/week), the subscription counter will be updated by sending a request to google's YouTube Data V3 API containing the channel name determined manually *or* by the value(s) in the infobox. If data is retrieved, updated to fit. Contains a date of update.
2: Same as above but for views.
Discussion
Will the bot make an edit if the new figure is too close to the existing one (that is, will it "update" a figure of 2,000,000 to 2,001,000)? A daily update on any article will clutter the page history and would be certainly undesirable. IMO the bot shouldn't edit the same article more than once a month, and too only if the change in the number is significant. Also, has this task been discussed somewhere? – SD0001 (talk) 16:04, 3 September 2020 (UTC)
- I randomly checked about a half-dozen YouTubers and the subscription counts tended to be either 2 or 3 sigfics, so you wouldn't get an update of 2 million until it hit 2.1 million (though obviously the bot needs to know be able to deal with this). I concur that daily is unnecessary and that monthly might be better. Primefac (talk) 17:05, 3 September 2020 (UTC)