libo26 / feedparser

Automatically exported from code.google.com/p/feedparser
Other
0 stars 0 forks source link

Feedparser hangs on this feed #209

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. Try to parse this feed: 
http://chaoswrappedinchocolate-
coveredgrins.blogspot.com/feeds/posts/default

2. You'll notice that the feedparser just hangs and never comes back. 

The same feed parses properly on other tools such as SimplePie. I would 
expect the parser to either parse the feed correctly, or at least return an 
error indicating what's wrong. 

I'm using the latest version from the SVN. And I tried running it on the 
Google App Engine (Python 2.5) and also on my local machine (Python 2.6) 
and I get the same behavior. 

Please provide any additional information below.

Original issue reported on code.google.com by ninuawal...@gmail.com on 3 Mar 2010 at 9:02

GoogleCodeExporter commented 9 years ago
Thanks for raising this. This bug was recently fixed in revision 308. Please 
use the 
version of feedparser.py that is in SVN: 
http://code.google.com/p/feedparser/source/browse/trunk/feedparser/feedparser.
py
I'm marking this as a duplicate of issue 146: 
http://code.google.com/p/feedparser/issues/detail?id=146

>>> f = feedparser.parse("http://chaoswrappedinchocolate-
coveredgrins.blogspot.com/feeds/posts/default")
>>> f.feed
{'updated': u'2010-03-02T14:57:07.517-05:00', 'subtitle': u'', 
'updated_parsed': 
(2010, 3, 2, 19, 57, 7, 1, 61, 0), 'links': [{'href': 
u'http://chaoswrappedinchocolate-
coveredgrins.blogspot.com/feeds/posts/default', 'type': 
u'application/atom+xml', 
'rel': u'http://schemas.google.com/g/2005#feed'}, {'href': 
u'http://www.blogger.com/feeds/7179826859845409766/posts/default', 'type': 
u'application/atom+xml', 'rel': u'self'}, {'href': 
u'http://chaoswrappedinchocolate-
coveredgrins.blogspot.com/', 'type': u'text/html', 'rel': u'alternate'}, 
{'href': 
u'http://pubsubhubbub.appspot.com/', 'type': 'text/html', 'rel': u'hub'}, 
{'href': 
u'http://www.blogger.com/feeds/7179826859845409766/posts/default?start-
index=26&max-results=25', 'type': u'application/atom+xml', 'rel': u'next'}], 
'title': 
u'Chaos Wrapped in Chocolate-Covered Grins', 'author': u'Jennifer 
(noreply@blogger.com)', 'generator_detail': {'href': u'http://www.blogger.com', 
'version': u'7.00', 'name': u'Blogger'}, 'subtitle_detail': {'base': 
u'http://chaoswrappedinchocolate-coveredgrins.blogspot.com/feeds/posts/default',

'type': 'text/html', 'value': u'', 'language': None}, 'title_detail': {'base': 
u'http://chaoswrappedinchocolate-coveredgrins.blogspot.com/feeds/posts/default',

'type': 'text/plain', 'value': u'Chaos Wrapped in Chocolate-Covered Grins', 
'language': 
None}, 'href': u'http://www.blogger.com/profile/13882744458676551462', 'link': 
u'http://chaoswrappedinchocolate-coveredgrins.blogspot.com/', 'author_detail': 
{'href': u'http://www.blogger.com/profile/13882744458676551462', 'name': 
u'Jennifer', 'email': u'noreply@blogger.com'}, 'generator': u'Blogger', 'id': 
u'tag:blogger.com,1999:blog-7179826859845409766'}
>>> len(f.entries)
25

Original comment by adewale on 3 Mar 2010 at 10:17