Commons:Bots/Requests/Geograph Update Bot

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

Geograph Update Bot (talk · contribs)

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

Bot's tasks for which permission is being sought: To replace low-resolution images from Geograph Britain and Ireland with higher-resolution ones. Many pictures from Geograph on Commons are only 640px across, but higher resolutions are often available. The bot will only upload a new image if the latest version on Commons is identical to the 640px version on Geograph.

Automatic or manually assisted: Automatic, supervised.

Edit type (e.g. Continuous, daily, one time run): Occasional manual runs. I expect scanning all the existing images to take several weeks.

Maximum edit rate (e.g. edits per minute): In practice, limited by the rate of finding images to update. Theoretically up to 12 edits 1 edit per minute.

Bot flag requested: (Y/N): N

Programming language(s): Python (using pywikibot)

bjh21 (talk) 17:00, 19 August 2017 (UTC)[reply]

Discussion

I think I'm in a position to do a test run, but I've got the slight problem that the bot account is too new to overwrite files, so it gets a fileexists-forbidden error. --bjh21 (talk) 18:02, 19 August 2017 (UTC)[reply]

The bot now has the necessary right, and is upgrading images from Category:Images by Dave Bevis as a test. --bjh21 (talk) 19:38, 19 August 2017 (UTC)[reply]

Test run complete. I await your decision. --bjh21 (talk) 20:50, 19 August 2017 (UTC)[reply]

Looks OK for me. --EugeneZelenko (talk) 14:03, 20 August 2017 (UTC)[reply]
@Bjh21: Very nice to see you picking this up! Looks excellent, especially the documentation on the user page. Would be nice if you put your code somewhere public like github (that's where I shared my ancient geograph code).
I hope to see a follow up task in the future to also upload the missing images. A lot of new images have probably be contributed to Geograph since the initial batch upload.
Please approve :-) Multichill (talk) 16:44, 21 August 2017 (UTC)[reply]
I'll put the code on GitHub this week, maybe after I've cleaned it up a little. I have already decided that uploading all the more recent Geograph images (over 3 million of them) is a job much to big (and controversial) for me, so I'm restricting myself and my bot to cleaning up pictures that are already here. --bjh21 (talk) 17:48, 21 August 2017 (UTC)[reply]
The code for the bot is now on GitHub. It wasn't as ugly as I'd remembered. --bjh21 (talk) 20:00, 21 August 2017 (UTC)[reply]

If there are objections, I think task should be approved. --EugeneZelenko (talk) 14:14, 23 August 2017 (UTC)[reply]

Uncontroversial request. Botflag granted. --Krd 14:16, 23 August 2017 (UTC)[reply]