Feedparser cannot parse official EA.com podcast

Bug #443317 reported by Thomas Perl
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
feedparser (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

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).

Revision history for this message
Thomas Perl (thp) wrote :
Revision history for this message
Kurt McKee (kurtmckee) wrote :

I'm work on feedparser, and I've tested the EA podcast URL provided using svn trunk (r368). The server responds with a feed instead of HTTP 302.

Whoever has power to close this report, please do so. Thanks!

Revision history for this message
Kurt McKee (kurtmckee) wrote :

Can someone please close this bug report?

Thomas Perl (thp)
Changed in feedparser (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.