[Bug 443317] [NEW] Feedparser cannot parse official EA.com podcast
Thomas Perl
thp at perli.net
Mon Oct 5 17:43:00 UTC 2009
Public bug reported:
The official EA Podcast at http://www.ea.com/rest/podcast cannot be
parsed with feedparser, although it can be viewed from within Firefox
and downloaded using wget. Some debugging with wireshark reveals that
the "Accept:" header that is sent by the feedparser is not understood by
the server correctly. Adding "*/* as additional accept type solves the
problem and lets feedparser download the feed.
>>> import feedparser
>>> f = feedparser.parse('http://www.ea.com/rest/podcast')
>>> f
{'feed': {}, 'encoding': 'utf-8', 'bozo': 1, 'version': None, 'entries': [], 'bozo_exception': HTTPError()}
>>> print f.bozo_exception
HTTP Error 302: The HTTP server returned a redirect error that would lead to an infinite loop.
The last 30x error message was:
Found
I will attach a patch that fixes this wrong behaviour (although one
might argue that the server is to blame).
** Affects: feedparser (Ubuntu)
Importance: Undecided
Status: New
--
Feedparser cannot parse official EA.com podcast
https://bugs.launchpad.net/bugs/443317
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list