Reputation: 3903
I'm trying to extract the links to all the images in the wikipedia, without losing the image names and probably the alt tags. I got to know from
How do I get link to an image on wikipedia from the infobox?
that I could get it by querying: http://en.wikipedia.org/wiki/File:filename.jpg However, to do this I need to get all the filenames of the images. Any clues?
Thanks!
Upvotes: 0
Views: 1722
Reputation: 422
this gives the list of all image urls and file names also in the page
http://en.wikipedia.org/w/api.php?action=query&titles=World&generator=images&gimlimit=10&prop=imageinfo&iiprop=url|dimensions|mime&format=json
change the title= part
Upvotes: 3