05-27-2008, 10:38 AM
|
#1
|
Franchise Player
|
Downloading/Extracting Streaming Audio
I'm a fan of The Ongoing History of New Music. Hundreds of hours of their programming is available online for your streaming pleasure. They also offer a limited podcast without the music but their list of podcasts hasn't been updated since June 2007.
Can anyone advise a way to take the streaming audio from the link above and get it onto my desktop and, ultimately, onto my iPod?
Thanks!
|
|
|
05-27-2008, 11:07 AM
|
#2
|
Powerplay Quarterback
|
I had the exact same desire...so I wrote a program that downloads all of the audio to MP3s, then properly tags all the MP3s for use on my IPod.
So...want me to package it up and send it to you?
|
|
|
05-27-2008, 11:09 AM
|
#3
|
Franchise Player
|
Quote:
Originally Posted by gottabekd
I had the exact same desire...so I wrote a program that downloads all of the audio to MP3s, then properly tags all the MP3s for use on my IPod.
So...want me to package it up and send it to you?
|
Yes, assuming you're not packaging it up with viruses, trojans and goatse pics.
|
|
|
05-27-2008, 11:24 AM
|
#4
|
Franchise Player
Join Date: Jul 2005
Location: in your blind spot.
|
Quote:
Originally Posted by fredr123
Yes, assuming you're not packaging it up with viruses, trojans and goatse pics.
|
You're leaving yourself open to tubgirl pics
__________________
"The problem with any ideology is that it gives the answer before you look at the evidence."
—Bill Clinton
"The greatest obstacle to discovery is not ignorance--it is the illusion of knowledge."
—Daniel J. Boorstin, historian, former Librarian of Congress
"But the Senator, while insisting he was not intoxicated, could not explain his nudity"
—WKRP in Cincinatti
|
|
|
05-27-2008, 12:18 PM
|
#5
|
Powerplay Quarterback
|
Just a couple Qs, fredr123: Are you running Windows? How technically savvy are you? Like, if you had to install the python interpreter and then download and extract and install a python module, does that sound like a pain?
Or, I can compile the program into a little EXE. But I've got to figure out how to do that, and that will take some time (good thing I have lots of it).
|
|
|
05-27-2008, 12:21 PM
|
#6
|
Franchise Player
|
Quote:
Originally Posted by gottabekd
Just a couple Qs, fredr123: Are you running Windows? How technically savvy are you? Like, if you had to install the python interpreter and then download and extract and install a python module, does that sound like a pain?
Or, I can compile the program into a little EXE. But I've got to figure out how to do that, and that will take some time (good thing I have lots of it).
|
I'm on Windows and I had/have the python interpreter installed at one point. I bet if anyone else was interested, though, they would prefer the exe.
|
|
|
05-27-2008, 02:15 PM
|
#7
|
Redundant Minister of Redundancy
Join Date: Apr 2004
Location: Montreal
|
Quote:
Originally Posted by gottabekd
Just a couple Qs, fredr123: Are you running Windows? How technically savvy are you? Like, if you had to install the python interpreter and then download and extract and install a python module, does that sound like a pain?
Or, I can compile the program into a little EXE. But I've got to figure out how to do that, and that will take some time (good thing I have lots of it).
|
Use freeze. It will compile python into a exe. At least on Linux it does, I've used it a couple times in the past. Since it ships with python, I assume it must work on Windows as well.
|
|
|
05-27-2008, 02:26 PM
|
#8
|
Franchise Player
|
Quote:
Originally Posted by BlackEleven
Use freeze. It will compile python into a exe. At least on Linux it does, I've used it a couple times in the past. Since it ships with python, I assume it must work on Windows as well.
|
According to PythonInfo Wiki:
Quote:
Freeze is a "pure Python" utility that ships with Python. You can use Freeze to compile executables for Unix systems.
|
py2exe is the way to go:
Quote:
py2exe is a Python Distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation.
|
|
|
|
05-27-2008, 02:29 PM
|
#9
|
Redundant Minister of Redundancy
Join Date: Apr 2004
Location: Montreal
|
Ah, there you have it. I'm not a big Windows guy. I just thought it would work with Windows, since almost everything is platform independent in Python.
|
|
|
05-27-2008, 04:56 PM
|
#10
|
Powerplay Quarterback
|
Alright, here it is. - Windows EXE (compiled using py2exe). Tested it out to work on Windows XP. Supposedly will run out of the box, without installing python or any modules.
That is all you'll need to run on Windows. But if others are interested: Info:
This little script doesn't really *do* anything. It just downloads MP3s direct from the OHNM "streaming" service. The flash player does is download an mp3 file to your Internet cache, then load the file. For example if you visit the page : http://bstreamcorus.streamtheworld.c...pi=OHNM0589_01, the file http://bstreamcorus.streamtheworld.c...HNM0589_01.mp3 is downloaded and played in your browser. My script just cycles through the ID numbers, grabbing the four mp3 segments of each show (01-04). Then the files are tagged in a way that makes sense to me.
Also, though I don't have any moral problems with leeching 6+ GB from them, the people hosing it might not like that, especially if this gets passed around to many. So, I don't really care to be associated with what you do with this program.
Finally, it is very specific to the Ongoing History feed. If they change how they host the files, name the files, or even the tags on the MP3s, this thing will break.
Let me know of any questions!
And why did I do this? I'm a big fan of the show, and love passing the knowledge about the show around. I wrote this up as a training exercise to learn about some python programming. So, it is a little hackish, but it works.
|
|
|
05-28-2008, 08:31 AM
|
#11
|
Franchise Player
|
Quote:
Originally Posted by gottabekd
Alright, here it is.
|
Thank you very much for your handiwork. I'm in the process of obtaining the shows right now. Seems to be chugging along as advertised.
|
|
|
Thread Tools |
Search this Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -6. The time now is 09:50 AM.
|
|