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 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.

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

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


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.