Created
January 14, 2013 11:50
-
-
Save yfwu/4529568 to your computer and use it in GitHub Desktop.
A download script written in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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