Python Commandline

Mostly when I code, I use java,c# or sometimes php. But now and then I use python. Today I wanted to download some podcasts that I hadn’t listen to in a while. (Read the other posts to know why) So I wanted to do a bulk download, the mp3z were named like xxx010.mp and I wanted to download up to 30 or so.
I gave the pyhton commandline an go (been a while). How could I forget such a nice feature.

i=10
for x range(20):
	print "xxx0"+str(i+x)+".mp3"

copy paste it into a textfile and wget -i thefile.txt

Sweet

Leave a Reply