On Fri, Sep 10, 2010 at 3:09 PM, Jose jmalv04@gmail.com wrote:
On Fri, Sep 10, 2010 at 2:44 PM, Roan Kattouw roan.kattouw@gmail.com 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&i...
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