Commons:Bots/Requests/Leaderbot

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Operator: Leaderboard (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought:: Upload graphs for meta:Global statistics

Automatic or manually assisted:: Automatic

Edit type (e.g. Continuous, daily, one time run): Daily Daily, but with a minimum of 6 days' gap for any given wiki

Maximum edit rate (e.g. edits per minute): ~1000/day ~1000 every six days (one for the upload, one for the accompanying wikitext for that file)

Bot flag requested: (Y/N): Y

Programming language(s): Python

I'm thinking of introducing graphs for Global Statistics, and (due to issues with the Graph extension) the only option is to upload images - which I plan to do on Commons. The graphs would be SVGs, and all graphs would have a common category. The account already has a bot flag and has been running for about a year on Meta.

Leaderboard (talk) 06:52, 13 February 2024 (UTC)[reply]

Discussion
  • I think daily differences will be hardly visible in the graphic. Perhaps it's sufficient to do it weekly, and even then only if the output has changed? --Krd 05:00, 7 March 2024 (UTC)[reply]
    Hi @Krd: I can do that, however, by "if the output has changed" it would depend on MediaWiki letting the bot know if it's uploading an exact copy (which would be the case if nothing has changed). Does that work? Leaderboard (talk) 06:23, 7 March 2024 (UTC)[reply]
    I'd say the last uploaded file could be stored locally, and if the new file is identical, the upload try could be skipped. Does that make sense? --Krd 05:00, 8 March 2024 (UTC)[reply]
    @Krd: It does; I'm thinking more on the lines of technical feasibility as the program is not designed to leave temp files like that. Regardless, this is something I can look at implementing either way. Leaderboard (talk) 07:01, 8 March 2024 (UTC)[reply]
    @Krd: This has now been implemented on both parts (i.e, it will only upload if it's at least ~6 days old and the file is different) - can this now be approved? Leaderboard (talk) 08:35, 10 March 2024 (UTC)[reply]

Approved. --Krd 03:13, 11 March 2024 (UTC)[reply]