Commons:Bots/Requests/AntiCompositeBot 2
Operator: AntiCompositeNumber (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)
Bot's tasks for which permission is being sought: Add {{Location estimated}} to files in petscan:10891872 per uploader's request at Commons:Village pump#GPS-data unreliable.. User:Havang(nl) has a camera that adds GPS metadata, but the coordinates are the same for all photos taken over an hour. They would like to add a tag to their images saying that the location metadata is imprecise. There are 23596 results in the query right now, so doing it manually is out of the question. The query targets files in Category:Photographs by Henk van Gaal with {{Location}} but without {{Object location}} or {{Location estimated}} (signifying that the bot or a human has already been there). Code is licensed under Apache 2.0, available on GitHub, the bot runs from Toolforge.
Automatic or manually assisted: Automatic
Edit type (e.g. Continuous, daily, one time run): One-time run
Maximum edit rate (e.g. edits per minute): 1 edit/min
Bot flag requested: (Y/N): Yes
Programming language(s): python/pywikibot
AntiCompositeNumber (talk) 01:37, 3 September 2019 (UTC)
Discussion
- Please make test run. --EugeneZelenko (talk) 14:24, 3 September 2019 (UTC)
- @EugeneZelenko: How many edits? I did 5 yesterday. --AntiCompositeNumber (talk) 19:33, 3 September 2019 (UTC)
- Just ran 25 test edits, for a total of 30. --AntiCompositeNumber (talk) 02:23, 4 September 2019 (UTC)
- Bot doesn't check if template already there or not. See File:Ganzeville (Seine-Mar.) église, statue 15 Saint Antoine de Padoue.jpg. --EugeneZelenko (talk) 14:09, 4 September 2019 (UTC)
- I checked petscan, there is not yet exclusion of {{Location estimated}} so I made a new petscan https://petscan.wmflabs.org/?psid=10933583 with new petscanID psid=10933583 and that scan seems correct. Good luck for next try. --Havang(nl) (talk) 12:20, 6 September 2019 (UTC)
- (was busy) Huh. I could have sworn that I added the template to the new petscan query. I will use Havang(nl)'s new one and add check in the code for it too. That's what I get for not checking my inputs, I guess. Will do another 5 edits when done. --AntiCompositeNumber (talk) 13:05, 6 September 2019 (UTC)
- Alright, I switched the PSID and added a check for {{Location estimated}} in the page's transcluded templates. 5 test edits done.--AntiCompositeNumber (talk) 01:21, 8 September 2019 (UTC)
- Looks OK for me. --EugeneZelenko (talk) 14:57, 8 September 2019 (UTC)
- Looks OK for me too. (Had internet problems, now solved). --Havang(nl) (talk) 13:22, 10 September 2019 (UTC)
- Looks OK for me. --EugeneZelenko (talk) 14:57, 8 September 2019 (UTC)
- Alright, I switched the PSID and added a check for {{Location estimated}} in the page's transcluded templates. 5 test edits done.--AntiCompositeNumber (talk) 01:21, 8 September 2019 (UTC)
- Bot doesn't check if template already there or not. See File:Ganzeville (Seine-Mar.) église, statue 15 Saint Antoine de Padoue.jpg. --EugeneZelenko (talk) 14:09, 4 September 2019 (UTC)
- Just ran 25 test edits, for a total of 30. --AntiCompositeNumber (talk) 02:23, 4 September 2019 (UTC)
- @EugeneZelenko: How many edits? I did 5 yesterday. --AntiCompositeNumber (talk) 19:33, 3 September 2019 (UTC)
Approved. --Krd 15:13, 13 September 2019 (UTC)