Skip to content

Instantly share code, notes, and snippets.

@xiaotangyuan
Created December 30, 2016 03:48
Show Gist options
  • Save xiaotangyuan/35b2c2a5835b12920da0ab8e67a7f0a0 to your computer and use it in GitHub Desktop.
Save xiaotangyuan/35b2c2a5835b12920da0ab8e67a7f0a0 to your computer and use it in GitHub Desktop.
download walking dead comic
# encoding=utf8
import commands
import time
base_url = "http://www.omgbeaupeep.com/comics/mangas/The%20Walking%20Dead/001%20-%20The%20Walking%20Dead%20001/The-Walking-Dead-Comic-00{pic}.jpg"
for i in range(9,53):
image_url = base_url.replace('{pic}',str(i))
order = 'wget %s ' % image_url
print order
res = commands.getstatusoutput(order)
# print res
time.sleep(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment