Podcast catcher in Python

Chuck galois271 at gmail.com
Sat Sep 19 04:34:16 CEST 2009

On Sep 12, 3:37 pm, Chuck <galois... at gmail.com> wrote:
> On Sep 11, 9:54 pm, Chris Rebert <c... at rebertia.com> wrote:
> > On Fri, Sep 11, 2009 at 7:43 PM, Chuck <galois... at gmail.com> wrote:
> > > Does anyone know how I should read/download the mp3 file, and how I
> > > should write/save it so that I can play it on a media player such as
> > > Windoze media player?  Excuse my ignorance, but I am a complete noob
> > > at this.  I downloaded the mp3, and I got a ton of hex, I think, but
> > > it could've been unicode.
> > urllib.urlretrieve():http://docs.python.org/library/urllib.html#urllib.urlretrieve
> > Cheers,
> > Chris
> Thanks Chris!  I will play around with this.

I am using Python 3.1, but I can't figure out why I can't use
xml.dom.minidom.  Here is my code:

from xml.dom.minidom import parse, parseString
url = 'http://minnesota.publicradio.org/tools/podcasts/
grammar_grater.xml'  #just for test purposes

doc = parse(url)  #I have also tried parseString(url), not to mention
a million other methods from xml.Etree, xml.sax etc...  all to no

What the heck am I doing wrong?  How can I get this xml file and use
the toprettyxml() method.  Or something, so I can parse it.  I don't
have any books and the documentation for Python kind of sucks.  I am a
complete noob to Python and internet programming.  (I'm sure that is
obvious :) )



More information about the Python-list mailing list