Commons:Bots/Work requests

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

Shortcut: COM:BR · COM:BWR

Bot policy and list · Requests to operate a bot · Requests for work to be done by a bot  · Requests for batch uploads

Filing cabinet icon.svg
SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 7 days.

Adding Category to unidentified Surinamese files[edit]

Screenshot-2018-4-13 Flickr-to-Commons2.png
Screenshot-2018-4-13 Flickr-to-Commons.png

I have just made the Category:Unidentified subjects in Suriname for a project that we will have on nl.wikipedia in the short future. Is it possible for a bot adding this category to all files that contain "Suriname" or "Paramaribo" that are not in the category:Suriname or in one of the subcategories starting from category:Suriname? We will use it for a double writing week on Suriname. During this project volunteers will be encouraged to add as many categories as possible to these files. The objective is to better categorize as many files on Suriname as possible. Is there someone that wants to run a bot for this? Ymnes (talk) 16:35, 12 April 2018 (UTC)

Maybe the best solution is to tag all files which are tagged as {{Uncategorized}}. Adding a special parameter to all files which having "Suriname" or "Paramaribo" in filedescription. --Steinsplitter (talk) 16:57, 12 April 2018 (UTC)
I just dumped some 250+ uncategorized files in the category. @Ymnes: what kind of capacity do you expect from this project? If what you are asking would be done literally you probably get tens of thousands of files. - Alexis Jazz 19:51, 12 April 2018 (UTC)
At the very moment, there is one GLAM project starting[1][2] and in September/October there are writing weeks planned[3]. I'm involved with both and the 'writing weeks' must be the summon where all the remaining files will be re-categorized. Tens of thousands of files is a lot, but they are welcome. (as long as they are not yet categorized under Suriname or starting from there) The writing weeks on attract a lot of attention and several hundreds of articles are written each time. It's good to understand that these events are organized by more people this time and the expectations are high, because the Caribbean have never been the central point. Ymnes (talk) 20:12, 12 April 2018 (UTC)
File:Wandelmars 2013 - 007 (8625066693).jpg can you tell me how this file ended up with broken category code? A bot request may be needed to find all these and fix them. - Alexis Jazz 21:22, 12 April 2018 (UTC)
See the screenshots here at the right. With Flickr-to-Commons one should add the []-hooks in the fist occasion but not in the second occasion. So in the second occasion this should be done. It would be better when the tool would idenntify whether hooks are used or not. Ymnes (talk) 16:16, 13 April 2018 (UTC)
I added 81 insect images to Category:Unidentified insects of Suriname and 126 miscellaneous to Category:Unidentified subjects in Suriname. Face-smile.svg These all have some sort sort of "Unidentified" category. Btw, spiders are not insects you know.. - Alexis Jazz 23:06, 18 April 2018 (UTC)
@Alexis Jazz: Do you still know which files are concerned? Because they can better be moved to Category:Unidentified insects of Suriname.
By the way, I have been experiencing experimenting with Crop Cat-a-lot after I saw you used that tool. I have stopped doing it, because I was adding categories to files that had categories yet. This weekend I hope to learn more about the tool. If you have suggestions of tools I should learn to know here as well, I would be pleased you tell me, so I can make advantage of it. Ymnes (talk) 16:30, 19 April 2018 (UTC)
@Ymnes: Do I know which files are concerned? I don't understand.
By crop-a-lot you mean cat-a-lot and by experiencing you mean experimenting? Well you have to be careful with that indeed. I do searches and run cat-a-lot on that but a few of the files I added may have already had good categories. I checked several though and all seemed to have at at least some issue regarding categories. - Alexis Jazz 16:47, 19 April 2018 (UTC)
@Alexis Jazz: I am sorry, I was confused. Thanks for adding them! Ymnes (talk) 17:13, 19 April 2018 (UTC)
I see some overcategorisation happened with for example File:Trees live (39371073731).jpg. There is a limit to the length of search queries so I was unable to exclude all subcategories of Category:Unidentified subjects in Suriname. I did exclude the big ones though, but I could only exclude 3 or 4 categories. - Alexis Jazz 17:51, 19 April 2018 (UTC)
@Alexis Jazz, Ymnes: Cat-a-lot can check overcategorisation for you.   — Jeff G. ツ please ping or talk to me 18:10, 19 April 2018 (UTC)
Thanks for the advice! Ymnes (talk) 18:20, 19 April 2018 (UTC)
@Jeff G.: That doesn't help much. File:Trees live (39371073731).jpg is in Category:Unidentified trees in Suriname, that is in Category:Unidentified plants in Suriname and that is in Category:Unidentified subjects in Suriname. When File:Trees live (39371073731).jpg is also in Category:Unidentified subjects in Suriname the over-categorisation check does not spot it. - Alexis Jazz 19:05, 19 April 2018 (UTC)
I've just moved everything from Category:Trees in Suriname to Category:Unidentified trees in Suriname. More subcategories should be made in Category:Trees in Suriname for the various kinds of trees and files moved into those. One of them can be "Other trees in Suriname" for trees we have only one or two images of and trees that are otherwise hard to categorise. - Alexis Jazz 19:17, 19 April 2018 (UTC)
Pictogram voting comment.svg  Comment @Ymnes: Try Suriname -insource:/Category:.* Suriname/ -insource:/Category:.* Curaçao/ -insource:/Category:.* Paramaribo/ -insource:/Category:Suriname.*/ -insource:/Category:Curaçao.*/ -insource:/Category:Paramaribo.*/. It's not perfect but maybe it helps. - Alexis Jazz 10:14, 23 April 2018 (UTC)
[4] seems to provide some good results as well. - Alexis Jazz 10:48, 23 April 2018 (UTC)
@Alexis Jazz: Thanks for the advice! This may be helpful. I didn't have enough time this weekend. Hopefully I will next one (one day more because of Kings Day). Ymnes (talk) 16:30, 23 April 2018 (UTC)

Add missing template parameter[edit]

For template {{Published}} the parameter legal is mandatory, but often has not been set. I added an error message and maintenance category Pages with incorrect usage of Template:Published for these cases. For hugely reducing manual work it would be fine that a bot doing these things:

  • Go to all pages in this cat, search for uses of {{Published}}, note that there also could be more than one.
  • Look for every use whether the parameter |legal is present (because of copy & paste it could be something like | legal = with varying number of spaces).
  • For all cases where it is not included add | legal = unclear.

Then the manual work had only to be done for other issues. — Speravir – 16:34, 21 April 2018 (UTC)

@Speravir: It has to be spelled "unclear".   — Jeff G. ツ please ping or talk to me 01:37, 24 April 2018 (UTC)
Yes, thank you, Jeff! Fixed above. — Speravir – 01:39, 24 April 2018 (UTC)
You're welcome. Why people add that template without the "legal" parameter is unclear.   — Jeff G. ツ please ping or talk to me 01:42, 24 April 2018 (UTC)


504 results. Please remove {{cc-by-4.0}}/{{cc-by-sa-4.0}} and replace it with {{Tasnim}}. - Alexis Jazz 05:02, 23 April 2018 (UTC)

267 results (some overlap with the previous link). Please add {{LicenseReview}} to the license section and Category:Tasnimnews review needed. The latter I could do myself, but somebody might start screaming when images start popping up there without {{LicenseReview}}. I don't know if reviewers can handle that.

Any instances of can be replaced with and with - Alexis Jazz 05:02, 23 April 2018 (UTC)

I guess this request has to be tackeled in batches. I have done the last part and took the liberty to strike it out. It will also be corrected on all future uploads. --Schlurcher (talk) 04:26, 25 April 2018 (UTC)

Categorizing photographers[edit]

Add daily to Category:Photos by Hamed Malekpour for Tasnim News Agency.

Other names:

  • Hossein Zohrevand (حسین ظهروند)
  • Javid Nikpour (جاوید نیک‌پور)
  • Mahmood Hosseini (سیدمحمود حسینی)
  • Meghdad Madadi (مقداد مددی)
  • Mohammad Hassanzadeh (محمد حسن زاده)
  • Erfan Kouchari (عرفان کوچاری)
  • Foad Ashtari (فؤاد اشتری)
  • Morteza Salehi (مرتضی صالحی)
  • Farzad Menati (فرزاد منتی)
  • Mohammad Akhlaghi (محمد اخلاقی)
  • Foad Ashtari (فؤاد اشتری)
  • Alireza Vasigh Ansari (علیرضا وثیق انصاری)
  • Hossein Heidarpour (حسین حیدرپور)
  • Naser Jafari (حسین ظهروند)
  • Mahdi Dehghan
  • Mohammad Ali Marizad (محمدعلی مریزاد)
  • Mohammad Delkesh (محمد دلکش)
  • Hasan Hendi
  • Siamak Ebrahimi
  • Mojtaba Esmaeil zadeh (مجتبی اسماعیل زاده)
  • Abdolrahman Rafati (عبدالرحمان رأفتی)
  • Vahid Ahmadi (وحید احمدی)
  • Ali Khodaei (علی خدایی)
  • Ali Asadollahi Sooteh (علی اسدالهی سوته)
  • Abbas Shariati (سید عباس شریعتی)
  • Mohammad Hossein Taghi (محمدحسین طاقی)
  • Fathi Nezam (فتحی نظام)
  • Gholamreza Ahmadi (غلامرضا احمدی)
  • Hamed Amirnejad (حامد امیرنژاد)
  • Morteza Jaberian (مرتضی جابریان)
  • Alireza Ameri (علیرضا عامری)
  • Masoud Fardi Anvar (مسعود فردی انور)
  • Nima Najafzadeh (نیما نجف‌زاده)
  • Farhad Babaei

There are more, but it will be easier to find them after a bot has sorted these out. Obviously: the bot should be able to handle new names when Tasnim hires a new photographer.

After that is done: search for anything with the {{Tasnim}} template that is not yet in any of the "Photos by .. for Tasnim News Agency" categories or Category:Photos from not categorized by photographer and add it to Category:Photos from not categorized by photographer. - Alexis Jazz 07:23, 23 April 2018 (UTC)

This is not really bot work, it can be done with catalot. What are the daily numbers that may justify this as automated housekeeping? -- (talk) 08:11, 23 April 2018 (UTC)
The fact I don't want to run dozens of searches every day? - Alexis Jazz 08:14, 23 April 2018 (UTC)
Yes, some stats would help to encourage a bot writer to spend time setting this up. Six in a month is very different from ten a day. Thanks -- (talk) 08:32, 23 April 2018 (UTC)
Category:Photos from contains 13,554 photos right now. Nearly all of them need to be in a "Photos by .. for Tasnim News Agency" category and new photos are still uploaded every day. hastemplate:tasnim insource:"date: 2018-03" turns up 320 results which would suggest slightly over 10 a day, except that search is missing anything that uses a different date format so there may be more. I had started to initially fill categories with cat-a-lot, but this is taking forever and at some point point I will start to make mistakes. Better have a bot handle this and I can sort out wrongly credited photos. - Alexis Jazz 08:56, 23 April 2018 (UTC)

Scanned with..[edit]

intitle:"Scanned with"

Remove {{hiddencat}} and __HIDDENCAT__.

Add {{Scanned with category}}. - Alexis Jazz 16:11, 26 April 2018 (UTC)

Authoritiy --> Authority[edit]

Hi, can a bot take care of this? Thank you for your time. Lotje (talk) 07:22, 14 May 2018 (UTC)

✓  Done (with VisualFileChange) should have been done, but seemingly wasn't.. - Alexis Jazz ping plz 17:58, 17 May 2018 (UTC)
✓  Done and I am an idiot - Alexis Jazz ping plz 18:03, 17 May 2018 (UTC)

City Archive of Kiel[edit]

This Archiv has published round about 30 thousand pictures of Kiel under free licences, I think a bot should import them. Habitator terrae (talk) 16:55, 19 May 2018 (UTC)

Here are the pictures being at Commons. Habitator terrae (talk) 17:25, 19 May 2018 (UTC)

I'll take a look. The conventional place for a batch upload suggestion is at COM:BATCH. -- (talk) 15:44, 20 May 2018 (UTC)
OK, I will quest there. Habitator terrae (talk) 16:56, 20 May 2018 (UTC)

Batch rename request[edit]

Please can someone rename my 41 images:


  • 'File:Armenian Railways Museum locomotive Эш705-46 + coach - 2018-05-18 - Andy Mabbett - 01.jpg', et seq

(That's "Эш" instead of "3ա"), or tell me of a tool that can use to do that. They are all in Category:Locomotive Эш705-46. Thank you. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:43, 20 May 2018 (UTC)

✓  Done 41 moves. I have a custom way of doing these, but someone did write a tool to do mass renames. It's in the archives of this noticeboard somewhere. -- (talk) 11:48, 21 May 2018 (UTC)
@Pigsonthewing, : User:Legoktm/massrename.js was adopted by Perhelion, forming User:Perhelion/massrename.js.   — Jeff G. ツ please ping or talk to me 13:26, 21 May 2018 (UTC)