Created
November 4, 2011 00:10
-
-
Save samuelclay/1338319 to your computer and use it in GitHub Desktop.
The Verge RSS feed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> import feedfinder | |
>>> feedfinder.feed('http://theverge.com') | |
'http://theverge.com/rss/index.xml' | |
>>> import feedparser | |
>>> fp = feedparser.parse('http://theverge.com/rss/index.xml') | |
>>> fp | |
{'feed': {}, 'status': 200, 'bozo': 1, 'headers': {'status': '200 OK', 'content-length': '19383', 'via': '1.1 sbnation.com', 'content-encoding': 'deflate', 'vary': 'Accept-Encoding', 'x-runtime': '578', 'connection': 'Keep-Alive', 'etag': '"fd2f3a5b33a1a706fea1dec62ad25df3"', 'cache-control': 'private, max-age=0, must-revalidate, private, max-age=0, must-revalidate', 'date': 'Fri, 04 Nov 2011 00:06:59 GMT', 'p3p': 'CP="CAO DSP COR CURa ADMa DEVa PSAa PSDa CONi OUR IND PHY ONL UNI COM NAV INT CNT STA"', 'content-type': 'application/xml; charset=utf-8'}, 'etag': u'"fd2f3a5b33a1a706fea1dec62ad25df3"', 'href': u'http://www.theverge.com/rss/index.xml', 'entries': [], 'bozo_exception': error('Error -3 while decompressing data: incorrect header check',)} | |
>>> fp.entries | |
[] | |
>>> fp.bozo | |
1 | |
>>> fp.bozo_exception | |
error('Error -3 while decompressing data: incorrect header check',) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment