0

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!

Community
  • 1
  • 1
madCode
  • 3,733
  • 5
  • 26
  • 31

1 Answers1

3

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

boltsfrombluesky
  • 412
  • 3
  • 13