This file contains hidden or 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 | |
ep_no=5 #enter episode number you want to download here | |
n=100 | |
def findepno (n): | |
try: | |
for i in xrange(n,999): | |
urllib2.urlopen('http://download.publicradio.org/podcast/marketplace/codebreaker/2015/11/11/codebreaker_'+str(ep_no)+'_20151111_'+str(i)+'_64.mp3') | |
print "link to episode number "+str(ep_no)+" is: "+"http://download.publicradio.org/podcast/marketplace/codebreaker/2015/11/11/codebreaker_"+str(ep_no)+"_20151111_"+str(i)+"_64.mp3" | |
break; | |
except urllib2.HTTPError, e: |