Jump to content

Wikipedia:Bots/Requests for approval/YoutubeSubscriberBot

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Nokib Sarkar (talk | contribs) at 11:00, 28 September 2020 (Discussion). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

New to bots on Wikipedia? Read these primers!

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)[reply]

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)[reply]
I agree with both of you. Daily/Weekly is unnecessary. The API only displays 2 (or 3) significant figures anyway. I actually didn't think to discuss it anywhere since the Wikipedia:Bots/Requests_for_approval article says that if the bot could be controversial, it should be discussed. But it makes sense to talk to people about it beforehand, I was ignoring proceedure. I'll do it at Wikipedia:WikiProject YouTube. Also, if the bot does not notice a difference in value, it will not submit an edit. EncodedRainbow (talk) 17:02, 8 September 2020 (AEST)

Suggest looking for the transclusions of {{Infobox YouTube personality}}, rather than the items in the list article. ProcrastinatingReader (talk) 02:11, 5 September 2020 (UTC)[reply]