Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (16 sloc) 634 Bytes
#!/usr/bin/python
from os import system
from commands import getstatusoutput
if __name__ == "__main__":
to_download = [ (147, 101)
, (50, 27)
, (140, 41)
, (155, 105)
]
for (product, slide_nb) in to_download:
system("mkdir ./" + str(product))
for slide_id in range(slide_nb):
url = "http://osdir.com/shots/slideshows/" + str(product) + "/" + str(slide_id + 1) + ".gif"
result = getstatusoutput("wget -P ./" + str(product) + "/ " + url)
print " * Downloaded : " + url
# rename here 1.gif to 01.gif (and 20.gif to 020.gif) if needed
Something went wrong with that request. Please try again.