Skip to content

Instantly share code, notes, and snippets.

@yfwu
Created January 14, 2013 11:50
Show Gist options
  • Save yfwu/4529568 to your computer and use it in GitHub Desktop.
Save yfwu/4529568 to your computer and use it in GitHub Desktop.
A download script written in python
import urllib2
import sys
site=sys.argv[1]
for num in range(1,189):
strnum=str(num)
if len(strnum)==1:
strnum='00'+strnum
if len(strnum)==2:
strnum='0'+strnum
item=site+strnum+'.MP3'
f=open(strnum+'.mp3','wb')
f.write(item)
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment