Jump to content

Wikipedia:Bots/Requests for approval/YoutubeSubscriberBot: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 58: Line 58:
Suggest looking for the transclusions of {{t|Infobox YouTube personality}}, rather than the items in the list article. [[User:ProcrastinatingReader|ProcrastinatingReader]] ([[User talk:ProcrastinatingReader|talk]]) 02:11, 5 September 2020 (UTC)
Suggest looking for the transclusions of {{t|Infobox YouTube personality}}, rather than the items in the list article. [[User:ProcrastinatingReader|ProcrastinatingReader]] ([[User talk:ProcrastinatingReader|talk]]) 02:11, 5 September 2020 (UTC)
*{{BotTrial|edits=25}} If possible, please also keep track of how many pages it skips for having "the same" number. [[User:Primefac|Primefac]] ([[User talk:Primefac|talk]]) 16:28, 15 September 2020 (UTC)
*{{BotTrial|edits=25}} If possible, please also keep track of how many pages it skips for having "the same" number. [[User:Primefac|Primefac]] ([[User talk:Primefac|talk]]) 16:28, 15 September 2020 (UTC)
* {{comment}}Hey [[User:EncodedRainbow|ER]], Instead of editing locally, why not update <code>Youtube channel ID</code> property of the associated wikidata item and contribute globally? ---- <span style="text-shadow:7px 7px 8px black"><font face="Verdana">[[User:Nokib Sarkar|<font color="maroon" font-family="Times new roman">'''Nokib Sarkar'''</font>]]</font> <sup>[[User talk:Nokib Sarkar#top|<font face="Papyrus">Poke</font>]]</sup></span> 11:00, 28 September 2020 (UTC)

Revision as of 11:00, 28 September 2020

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]

  • Approved for trial (25 edits). Please provide a link to the relevant contributions and/or diffs when the trial is complete. If possible, please also keep track of how many pages it skips for having "the same" number. Primefac (talk) 16:28, 15 September 2020 (UTC)[reply]
  •  Comment:Hey ER, Instead of editing locally, why not update Youtube channel ID property of the associated wikidata item and contribute globally? ---- Nokib Sarkar Poke 11:00, 28 September 2020 (UTC)[reply]