On Fri, Sep 10, 2010 at 3:09 PM, Jose <[email protected]> wrote: > On Fri, Sep 10, 2010 at 2:44 PM, Roan Kattouw <[email protected]> wrote: >>> Both approaches seem complicated so maybe a different dump would be helpful: >>> >>> Page id --> List of [ Image id | real url | type (original | >>> dim_xy | thumb) | license ] >>> >> http://commons.wikimedia.org/w/api.php?action=query&prop=imageinfo&iiprop=url|dimensions&iiurlwidth=200&pageids=3786405|8801158|4120827|1478233 >> >> Returns image URL, width, height and thumbnail URL for a 200px thumbnail. > > Thanks, this may be useful. So let's say I want to get all images for > the Ant page, the steps will be: > Just use prop=images as a generator on en.wikipedia.org. This will yield the thumb urls as well as the urls of the commons pages, which can then be fetched separately.
Bryan _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
