Wikipedia:Bots/Requests for approval/SDZeroBot 3

SDZeroBot 3

[[User:SDZeroBot|SDZeroBot 3]]

{{Newbot|SDZeroBot|3}}

Operator: {{botop|SD0001}}

Time filed: 16:32, Sunday, March 29, 2020 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): NodeJS

Source code available:

Function overview: Update Wikipedia:User scripts/Most imported scripts periodically.

Links to relevant discussions (where appropriate): Wikipedia:Bot requests/Archive 80#Most imported user scripts table, Wikipedia:Village pump (technical)/Archive 177#Popular user scripts

Edit period(s): Weekly Once every 2 weeks

Estimated number of pages affected: 1

Exclusion compliant (Yes/No): No

Already has a bot flag (Yes/No): Yes

Function details: This bot will update Wikipedia:User scripts/Most imported scripts periodically. In addition to the just the total number of installations shown presently, the bot will also show the number of active users for each script.

The number of installations is the number of userspace common.js or skin js pages that contain the script's name ([https://en.wikipedia.org/w/index.php?search=%22User%3ALupin%2Fpopups.js%22+intitle%3A%2F%28common%7Cvector%7Cmonobook%7Cmodern%7Ctimeless%7Ccologneblue%29%5C.js%2F&title=Special%3ASearch&ns2=1 example search query for Lupin/popups.js script]). The number of active users is the number among them who've made an edit or log action in the last 30 days.

=Discussion=

  • My only question is whether this should be a weekly or monthly scan; how often does this sort of information change? Primefac (talk) 17:24, 29 March 2020 (UTC)
  • :I agree weekly is a bit excessive. I had initially planned on doing it once a fortnight. But then, it seemed that the only way to schedule that using cron is [https://stackoverflow.com/questions/350047/how-to-instruct-cron-to-execute-a-job-every-second-week through a hack] that doesn't work 100% correctly. Maybe, I was just over-thinking stuff and it would be better to just do it on the 1st and 15th day of each month. SD0001 (talk) 11:44, 30 March 2020 (UTC)
  • {{BotTrial|edits=1}} While I wait for the above reply, might as well show a "full run" as proof-of-concept. Primefac (talk) 17:25, 29 March 2020 (UTC)

::{{BotTrialComplete}} after a few hiccups with the toolforge cron [https://en.wikipedia.org/w/index.php?title=Wikipedia:User_scripts/Most_imported_scripts&diff=prev&oldid=948502478 edit] SD0001 (talk) 12:43, 1 April 2020 (UTC)

:::{{BotApproved}} Every two weeks seems perfectly fine. Primefac (talk) 12:14, 3 April 2020 (UTC)

:The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.