On 27/08/13 23:00, Holger Motzkau wrote:
Hi,
Thanks everybody for pinging me. I didn't even remember I forked that script there... Anyway, I looked into it and it seems to work again, except for two small details:
- There are no images for 2013 yet.
- The script expects all images to be in a single category. I didn't
find a simple way to get images in a sub-category using the api, i.e. https://commons.wikimedia.org/w/api.php?action=query&generator=categorym... https://commons.wikimedia.org/w/api.php?action=query&generator=categorymembers&gcmtitle=Category:Images_from_Wiki_Loves_Monuments&prop=imageinfo&gcmlimit=500&gcmnamespace=6 doesn't work if images aren't directly in the main category. Any Ideas how I get them using the API without having to recursively go through all subcategories? https://www.mediawiki.org/wiki/API:Categorymembers doesn't help too much.
Please feel free to fork the script if you like, you can just grab it with wget.
//Holger
[[Category:Images from Wiki Loves Monuments 2013]] will directly contain all files, so no need to recurse sub-categories (and no, the api doesn't allow that).
Regards