Commons:Bots/Work requests

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

Shortcuts: COM:BR • COM:BWR

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

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

# Title Status Replies Participants Last editor Date/Time (UTC) Last botop editor Date/Time (UTC)
1 Editing metadata on Images from Auckland Museum 11 2 TheSandDoctor 2021-05-21 02:36 TheSandDoctor 2021-05-21 02:36
2 Wiki Loves Africa again 3 2 EpicPupper 2021-05-16 21:51
3 Substitute template 6 3 Jeff G. 2021-06-08 05:14
4 Taking over User:OgreBot tasks 3 3 EpicPupper 2021-05-16 21:38 Schlurcher 2021-05-15 19:43
5 Fix white balance semi-automatically 1 1 HLHJ 2021-06-02 03:43
6 Spell4Wiki Mass audio uploads in Dagbani - help needed to clean up 1 1 Masssly 2021-06-10 14:56
  • In the last hour
  • In the last day
  • In the last week
  • In the last month
  • More than one month
Manual settings
When exceptions occur,
please check the setting first.

Editing metadata on Images from Auckland Museum[edit]


I work at Auckland Museum (see WP:GLAM/AM), and we're looking at the images uploaded to the Images from Auckland Museum category.

We'd like to initially do two things with the metadata in Source under the images:

  1. Replace the text "Object record" with the text "API data". I didn't think the Visual File Change tool was right for this given the number of images.
  2. Add a new link in this same Source section that points to the collection record on the website. API URLs are in this format:{dept}/object/{id}, so can be used as a base to create website links, which are in the format{dept}-object-{id}. I made Q97580921 (based on Q106413625 that the Rijksmuseum made, which I thought would help me use this SPARQL endpoint to extract data, but I'm a bit stuck.

Any help would be appreciated. Thank you. — Hugh (talk) 04:52, 7 April 2021 (UTC)

Hi @HughLilly:, would it be possible to do one manually and link it here so that I can better understand point #2 (ie have a before and after to compare)? Thanks! --TheSandDoctor (talk) 05:04, 17 April 2021 (UTC)
@TheSandDoctor:, thanks very much for your reply. I've edited File:"A.W.Hay_Proprietor_Oamaru"_truck_(AM_80135-1).jpg to change the text to "API data" and add a new link to the catalogue record. This table lays out how API and website URLs are constructed, and how API URLs can be used to construct website URLs; I hope it makes sense and that what we want to achieve is clear; please let me know if you have any more questions.
API URL schema Record URL schema
humanhistory/object/{ID} am_humanhistory-object-{ID}
naturalsciences/object/{ID} am_naturalsciences-object-{ID}
library/photography/{ID} am_library-photography-{ID}
library/manuscriptsandarchives/{ID} am_library-manuscriptsandarchives-{ID}
library/paintinganddrawings/{ID} am_library-paintinganddrawings-{ID}
library/catalogq40/{ID} am_library-catalogq40-{ID}
library/ephemera/{ID} am_library-ephemera-{ID}
Thank you. — Hugh (talk) 22:40, 19 April 2021 (UTC)
@HughLilly: Thank you. Just to confirm: all of the images have an API url and the ID portion is always a numerical value, correct? If so, I'll start crafting something for this. --TheSandDoctor (talk) 01:18, 3 May 2021 (UTC)
@TheSandDoctor: Hi -- thanks for your reply. Most of the images have an API url -- they were uploaded as part of Commons:Batch uploading/AucklandMuseumCCBY. There may be some that were uploaded outside the scope of that project that do not have an API url. The ID is always numerical. Please let me know if you need more info. — Hugh (talk) 20:52, 3 May 2021 (UTC)
@HughLilly: I did File:"A.W.Hay Proprietor Oamaru" truck (AM 80135-2).jpg as a proof of concept per the above directions (but with "collections" in the url singular as plural doesn't exist) as an example. However, I notice that the catalogue record links to the wrong picture? This is not the picture previously wiki linked above. I made a mistake, so ignore that. How does it look overall though? Is that what you mean? --TheSandDoctor (talk) 02:15, 4 May 2021 (UTC)
@TheSandDoctor: Yes, great! That's perfect. I see you've made a template with parameters, is that right? That looks like it will be very useful in future if we update our canonical URLs. Sorry for the "collections" typo earlier -- you are right that it ought to be collection. Please proceed with the update. — Hugh (talk) 03:26, 4 May 2021 (UTC)
@HughLilly: Yes, I did as I figured future proofing may be appropriate. Now I shall write the script to do it enmasse & request it as a bot task Face-smile.svg. --TheSandDoctor (talk) 03:45, 4 May 2021 (UTC)
@TheSandDoctor: Thanks. Is there somewhere I can go to read about how such scripts are written? I'm keen to learn how it all works. — Hugh (talk) 22:12, 4 May 2021 (UTC)
Request filed. @HughLilly: I use Pywikibot (click there to see the manual). You can see the actual script here. Please let me know if you have any questions! --TheSandDoctor (talk) 01:26, 11 May 2021 (UTC)
@HughLilly: It has now been approved and is running. At current edit rate, estimated time to completion is around 13-14 days. It is running 24/7 until done. --TheSandDoctor (talk) 02:36, 21 May 2021 (UTC)

Wiki Loves Africa again[edit]

Hello everyone. I have two others needs...

Need 1[edit]

According to petscan [1], there are 461 images that were uploaded on Wikimedia Commons as part of the contest, were taggued as belonging to a country category... but miss the general category... How this can happen is a bit beyond me. But bottom line... I need all those 461 images to have the following template added :

{{Wiki Loves Africa 2021}}

Can someone help ? @Vanbasten 23: ? Thanks Anthere (talk) 19:17, 3 May 2021 (UTC)

This looks like something that can be done with AWB. I'll look into it, and potentially file a bot request for approval if I receive AWB perms. EpicPupper (talk) 21:51, 16 May 2021 (UTC)
✓ Done manually, there were only 10 according to PetScan when I checked. EpicPupper (talk) 21:20, 14 June 2021 (UTC)

Need 2[edit]

Also according to petscan [2], there are 225 images without a country mentionned, but also missing the category [[Category:Images from Wiki Loves Africa 2021 with unknown country‎ ]]

Many of those lost images are from User:Bukky658. He uploaded many images such as this one File:Beans porridge and fried plantains.jpg without using the upload tunnel. So categories... are a mess. Would it be possible to query all images done by User:Bukky658 AND with the category [[category:Images from Wiki Loves Africa 2021]] and add to all of them the following

{{Wiki Loves Africa 2021}}
Category:Images from Wiki Loves Africa 2021 in Nigeria‎]]

I am not sure how many images without country tags would remain after this.... but the remaining ones would need [[Category:Images from Wiki Loves Africa 2021 with unknown country‎ ]] ...

Anthere (talk) 19:23, 3 May 2021 (UTC)

(Probably) ✓ Done. I used VFC to query the images by Bukky658, but I'd prefer if someone takes a look at what I did, as I'm not 100 percent sure I did it right. EpicPupper (talk) 21:40, 14 June 2021 (UTC)

Substitute template[edit]


All occurances of {{Non-admin closure}} should be substituted (Special:Search/com: hastemplate:"Non-admin closure"). I can do it with VFC but I figured it be better if done by a bot instead, so not to spam RC.Jonteemil (talk) 02:15, 13 May 2021 (UTC)

Request filed. This would be with VFC as well, but with a bot flag as to not clutter RC. EpicPupper (talk) 21:52, 16 May 2021 (UTC)
Perfect. Jonteemil (talk) 04:43, 17 May 2021 (UTC)
Still doing...waiting for AWB rights. VFC doesn't seem to be working for me, so I'm planning to use AWB instead once I posses permissions. EpicPupper (talk) 19:07, 3 June 2021 (UTC)
Request withdrawn. Taking a look at the transclusions, they mostly are in users' talk page comments, and I would prefer to not touch those. In addition, this is a template that should be substituted, but does not have to (see also: {{Must be substituted}} and {{Should be substituted}}). Thanks for the idea, but I don't think it is necessary. EpicPupper (talk) 00:09, 5 June 2021 (UTC)
@Jonteemil: User:JeffGBot#Task 5 could have done this, but for the "Should".   — Jeff G. please ping or talk to me 05:14, 8 June 2021 (UTC)

Taking over User:OgreBot tasks[edit]

Owner decided to stop maintenance of bot's operations due recent API changes. Bot produced a lot of useful reports like User:OgreBot/Notable uploads and User:OgreBot/Uploads by new users. It'll be great if somebody will adjust bot's code to new API and will it on regular basis. Code is located at Part of functionality was run on ToolServer. Due to general usefulness of such bot, it'll be reasonable to run it on shared account. --EugeneZelenko (talk) 14:05, 14 May 2021 (UTC)

I should be able to implement most of the cleanup tasks from User:OgreBot 2. I'll have a look at the most recent contributions. I'm not able to read php code. --Schlurcher (talk) 19:43, 15 May 2021 (UTC)
OgreBot was a wonderful bot, and this seems unfortunate. A shared account for ToolServer looks like the best solution for the functionality on there. As for User:OgreBot/Uploads by new users, perhaps this tool can partially replace that. I do agree that having the gallery show up on file description pages is helpful, though. Cyberpower678 might be able to help with adjusting it to the new API, pinging him for ideas. EpicPupper (talk) 21:38, 16 May 2021 (UTC)

Fix white balance semi-automatically[edit]

A tool where one could click on an area of an image which ought to be white, and then preview the resulting colour correction and repeat until right, would be very useful. It's a pain to download each image, fix it manually, and re-upload it. The files in Category:Wrong white balance are far from the only ones that would benefit. If it could also remove the yellowing typical of paper of a certain age, the Wikisource people would also be very grateful; see Wikisource:Help:Adding images#Automatic processing with ImageMagick for their current Unix-commandline workflow. HLHJ (talk) 03:43, 2 June 2021 (UTC)

Spell4Wiki Mass audio uploads in Dagbani - help needed to clean up[edit]

Hello. I need some help with a number of audio files:

  • rename
  • recategorize
  • add descriptions, and
  • add captions

Some background

Dagbani Wikimedians undertook a project to record and upload Dagbani words to Wikimiedia Commons. We used the Spell4Wiki app which allows users to select their language, and then the app will proceed to add a prefix-language code to the Commons file's name. 4000+ words were uploaded into Category:Files uploaded by spell4wiki in dag.

The issues

  • Some users selected the wrong language to record their Dagbani word. Those wrong prefixed words are at Files uploaded by spell4wiki in CHECK. We would like them to be renamed with the right prefix Dag-
  • When renamed, some of those words in Category:Files uploaded by spell4wiki in CHECK will already exist in Category:Files uploaded by spell4wiki in dag. We want to keep both files (as they would likely have been recorded by a different user), so one of the duplicated file names can be named with the suffix, _1 or _2 (if there are 3 duplicates), and so on. E.g. Dag-Atalaata_1.ogg Dag-Atalaata_2.ogg etc.
  • To ensure conformity for all the words, we want the first letter of every word to be in caps, and the rest of the characters to be in lower case. i.e. Dag-Atalaata.ogg. We would like to rename all such files that don't conform, to now conform to this format.
  • We want to add Dagbani descriptions to all the files. They're currently only English or Tamil descriptions on the files. In Dagbani the description will take the format: Be ni boondi ... shɛm Dagbanli ni. E.g. for the file named Dag-Atalaata.ogg, the description in Dagbani will be Be ni boondi Atalaata shɛm Dagbanli ni.
  • We want to add Dagbani language captions to all the files. The captions will take this format: ... boligu. E.g. for the file named Dag-Atalaata.ogg, the caption in Dagbani will be Atalaata boligu

Many thanks for your help. -—M@sssly 14:56, 10 June 2021 (UTC)

redirects in Category:Files with no machine-readable license[edit]

In Category:Files with no machine-readable license there are thousends of false poitiv redirects. Each just needs a nulledit to get out of the category. Could a bot can do this work? --JuTa 20:17, 14 June 2021 (UTC)