Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum > Tech Talk
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 05-27-2008, 10:38 AM   #1
fredr123
Franchise Player
 
fredr123's Avatar
 
Join Date: Apr 2004
Exp:
Default 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!
fredr123 is offline   Reply With Quote
Old 05-27-2008, 11:07 AM   #2
gottabekd
Powerplay Quarterback
 
Join Date: Mar 2006
Exp:
Default

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?
gottabekd is offline   Reply With Quote
Old 05-27-2008, 11:09 AM   #3
fredr123
Franchise Player
 
fredr123's Avatar
 
Join Date: Apr 2004
Exp:
Default

Quote:
Originally Posted by gottabekd View Post
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.
fredr123 is offline   Reply With Quote
Old 05-27-2008, 11:24 AM   #4
Bobblehead
Franchise Player
 
Bobblehead's Avatar
 
Join Date: Jul 2005
Location: in your blind spot.
Exp:
Default

Quote:
Originally Posted by fredr123 View Post
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
Bobblehead is offline   Reply With Quote
Old 05-27-2008, 12:18 PM   #5
gottabekd
Powerplay Quarterback
 
Join Date: Mar 2006
Exp:
Default

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).
gottabekd is offline   Reply With Quote
Old 05-27-2008, 12:21 PM   #6
fredr123
Franchise Player
 
fredr123's Avatar
 
Join Date: Apr 2004
Exp:
Default

Quote:
Originally Posted by gottabekd View Post
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.
fredr123 is offline   Reply With Quote
Old 05-27-2008, 02:15 PM   #7
BlackEleven
Redundant Minister of Redundancy
 
BlackEleven's Avatar
 
Join Date: Apr 2004
Location: Montreal
Exp:
Default

Quote:
Originally Posted by gottabekd View Post
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.
BlackEleven is offline   Reply With Quote
Old 05-27-2008, 02:26 PM   #8
fredr123
Franchise Player
 
fredr123's Avatar
 
Join Date: Apr 2004
Exp:
Default

Quote:
Originally Posted by BlackEleven View Post
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.
fredr123 is offline   Reply With Quote
Old 05-27-2008, 02:29 PM   #9
BlackEleven
Redundant Minister of Redundancy
 
BlackEleven's Avatar
 
Join Date: Apr 2004
Location: Montreal
Exp:
Default

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.
BlackEleven is offline   Reply With Quote
Old 05-27-2008, 04:56 PM   #10
gottabekd
Powerplay Quarterback
 
Join Date: Mar 2006
Exp:
Default

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.
gottabekd is offline   Reply With Quote
Old 05-28-2008, 08:31 AM   #11
fredr123
Franchise Player
 
fredr123's Avatar
 
Join Date: Apr 2004
Exp:
Default

Quote:
Originally Posted by gottabekd View Post
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.
fredr123 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:40 PM.

Calgary Flames
2024-25




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021 | See Our Privacy Policy