Skip to content
Advertisement

How to download images from “wikimedia search result” using wget?

I need to mirror every images which appear on this page:

http://commons.wikimedia.org/w/index.php?title=Special:Search&ns0=1&ns6=1&ns12=1&ns14=1&ns100=1&ns106=1&redirs=0&search=buitenzorg&limit=900&offset=0

The mirror result should give us the full size images, not the thumbnails. What is the best way to do this with wget?

UPDATE:
I update the solution below.

Advertisement

Answer

It is quite difficult to write all the script in stackoverflow editor, you can find the script at the address below. The script only downloads all images at the first page, you can modify it to automate download process in another page.

http://pastebin.com/xuPaqxKW

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement