OK, thanks! Now there are two images and it works. //Holger


On Wed, Aug 28, 2013 at 12:00 AM, Platonides <platonides@gmail.com> wrote:
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=categorymembers&gcmtitle=Category:Images_from_Wiki_Loves_Monuments&prop=imageinfo&gcmlimit=500&gcmnamespace=6
<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



--
PhD student
Condensed Matter and Quantum Optics Division
Department of Physics, Stockholm University
AlbaNova University Center
Roslagstullsbacken 21
SE-106 91 Stockholm, Sweden
+46-(0)8-5537-8615
http://ekmf.physto.se/