Cannot get python to read a CAP file link in an ATOM feed

Discussion in 'Python' started by Brian Kaplan, Feb 10, 2009.

  1. Brian Kaplan

    Brian Kaplan Guest

    Hi List,
    I'm trying to get python to parse a CAP file in an ATOM feed from the
    National Weather Service. Here's one states ATOM feed.
    http://www.weather.gov/alerts-beta/ky.php?x=0. If you view the source
    of this file, there is a reference to another web feed. For instance,
    href="http://www.weather.gov/alerts-beta/wwacapget.php?x=KY20090210210200ILNNPWILNHighWindWarning20090212100000KY"
    (note, this latter file changes hourly). I can retrieve and parse the
    first file but cannot get the second file read or parsed as an xml. I
    am able to read it into memory using urlopen. Can python read and
    parse as an xml or do I need to read it into memory. If it is in
    memory, is there a similar parsing function. Thanks Brian Kaplan
    Brian Kaplan, Feb 10, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marc  Dugger

    JSTL and Atom feed parsing

    Marc Dugger, Dec 15, 2004, in forum: Java
    Replies:
    0
    Views:
    436
    Marc Dugger
    Dec 15, 2004
  2. chlori
    Replies:
    1
    Views:
    525
  3. =?Utf-8?B?bWF2cmlja18xMDE=?=

    Problem reading ATOM Feed.

    =?Utf-8?B?bWF2cmlja18xMDE=?=, May 8, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    360
    =?Utf-8?B?bWF2cmlja18xMDE=?=
    May 8, 2007
  4. Carfield Yim
    Replies:
    0
    Views:
    174
    Carfield Yim
    May 30, 2008
  5. Arun Kumar
    Replies:
    0
    Views:
    112
    Arun Kumar
    Apr 28, 2009
Loading...

Share This Page