life lifting

Ok, so partially out of curiosity, and partially out of geeky challenge, I set about trying to download back episodes of This American Life. It was simple at first. Downloading and peering inside the .m3u playlist from their site showed the mp3s actual url as being http://audio.wbez.org/archives/tal/304.mp3 or somesuch. You could just download them from your browser. But then after all of this “deep linking” hullabaloo, they got fancy. They switched to a shoutcast server, which basically does the same thing as the old system, but is a little more picky about who downloads content. It looks for a user-agent string (a.k.a. browser identification) from a known mp3 player, and will reject you if you try to download the source mp3 file with a standard browser. So now we have to change things up a bit.
Launch Firefox, enter about:config in the address bar and press enter.
Right-click anywhere on the page it opens, and select New String
Add “general.useragent.override” as the string name, and “iTunes/4.7 (Macintosh; N; PPC)” as the value.
Now the Shoutcast server will let you through, thinking Firefox is iTunes. But if you try to download an mp3 in Firefox, it will just try to open it in the browser window, which besides sucking, sucks. Soo, you have to whip up a little html page that looks something like this:
<html> <body> <a href="http://url.of/episode/300.mp3">300</a><br> <a href="http://url.of/episode/301.mp3">301</a><br> <a href="http://url.of/episode/302.mp3">302</a><br> <a href="http://url.of/episode/303.mp3">303</a><br> <a href="http://url.of/episode/304.mp3">304</a><br> </body> </html>
Save it as a .html file, open it in Firefox, and start option-clicking away. Once the files are downloaded to your desktop, feel free to kick back with some organic coffee harvested by free-range migrant workers and get your hipster nerd-on at your leisure.
And, yes, I seem to have changed my mind.
June 29th, 2006 at 4:52 pm
A little something like this from terminal and you can grab them all at once:
curl -O -A ‘iTunes/4.7 (Macintosh; N; PPC)’ http://wbez-tal.streamguys.us:8020/content/300-304.mp3
July 4th, 2006 at 11:11 pm
Thanks for posting this. Very helpful. I just downloaded the latest one in order to listen to it.
September 3rd, 2006 at 1:38 am
I’m confused. I use Firefox on PC, and it’s not working :(
October 13th, 2006 at 2:33 pm
worked GREAT!! thank you very much.
November 6th, 2006 at 1:53 am
Excellent. Thank you so much!
December 17th, 2006 at 3:09 am
This might help you guys out. I used all of your tips and automated the process a bit ;)
http://www.dirtygreek.org/stuff/tal.php?min=314&max=321
December 18th, 2006 at 6:34 pm
I’ve added a new set of links that I don’t think require the firefox trick. Got them by decompiling the flash player on the TAL site. http://audio.thisamericanlife.org/jomamashouse/ismymamashouse/SHOWNUMBER.mp3
Just replace SHOWNUMBER with the show number, like 314.
You can also use this
http://www.dirtygreek.org/stuff/tal.php?min=314&max=321
December 18th, 2006 at 7:00 pm
#!/bin/bash
clear
COUNTER=300
while [ $COUNTER -lt 304 ]; do
echo Downloading episode $COUNTER
curl -o ~/Desktop/episode$COUNTER.mp3 http://wbez-tal.streamguys.us:8020/content/COUNTER.mp3
let COUNTER=COUNTER+1
done
December 20th, 2006 at 4:23 pm
or, if the wbez-tal.streamguys.us urls don’t work (I’ve found that some don’t), use
http://audio.thisamericanlife.org/jomamashouse/ismymamashouse/COUNTER.mp3
February 26th, 2007 at 10:59 pm
Anyone have TAL episodes 5 & 8? I cannot seem to get just these two :(
March 17th, 2007 at 2:01 pm