magnusmanske / petscan_rs

The repo for the PetScan tool
https://petscan.wmflabs.org/
GNU General Public License v3.0
45 stars 10 forks source link

A way to add categories to all checked items #173

Open prototyperspective opened 4 months ago

prototyperspective commented 4 months ago

Useful for similar reasons and a workaround to this: #163

petscan can be extremely useful to find media files for new categories on Wikimedia Commons or to find items still missing in some existing category and many other applications like that.

The problem is one has to manually open each file in a new tab and add then add the category at the bottom (or top depending on settings) of the File page using HotCat. In contrast, on Wikimedia Commons one can use the Cat-a-lot gadget to quickly add or remove categories from many files that for example were queried using the search engine with search operators.

One can already do batch-wise changes to checked items for Wikidata properties using this box: ftg

Please add a way to do the same for WMC categories. This would be very useful, especially for maintenance. One would log in with OAuth and then execute the configured changes on the checked items.

When using the thumbnails view one could also use it to add categories by things visible from large thumbnails for individual files such as which year an "Our World in Data" map shows data of (the year is usually in the headline).

prototyperspective commented 1 month ago

Is there a least a way to export all file URLs so you can easily open all in new tabs? Example: audio files of speeches of unidentified language.

I don't know why it's possible to add quickstatements with this tool which are nearly not used at all but not Commons categories which could be used for all sorts of things (including Wikidata statements or structured data on Commons if one thinks such is useful).

prototyperspective commented 1 month ago

Well I found this tutorial on how to export to a plain list. One can then open many of these in new tabs and manually add the categories. However, for scans with many results adding it with some command (even if it requires some authorization or similar) would be much better, especially when an Unidentified cat is added which shouldn't cause any issues and is just about the categories set on the items. The problem is that even this workaround doesn't work because it only shows the File:... texts and not the full URL, will make a new separate issue for a way to export URLs as plain text.