The recent versions of feedparser include this functionality out of the box, so the custom branch is no longer needed. The interface is slightly different:
def build_feed(title, rss_url, count):
print "fetching data from %s" % (rss_url,)
- # we use our own copy of feedparser with a patch to let
- # <http://code.google.com/p/feedparser/issues/detail?id=224> extra_headers
- # be passed
- d = feedparser.parse(rss_url, extra_headers={'Cache-control': 'max-age=60'})
+ d = feedparser.parse(rss_url, request_headers={'Cache-control': 'max-age=60'})
entries = []
for entry in d.entries[0:count]: entries.append(dict(
The recent versions of feedparser include this functionality out of the box, so the custom branch is no longer needed. The interface is slightly different:
=== modified file 'build.py'
--- build.py 2012-03-21 10:29:44 +0000
+++ build.py 2012-05-13 23:53:34 +0000
@@ -57,10 +57,7 @@
def build_feed(title, rss_url, count): code.google. com/p/feedparse r/issues/ detail? id=224> extra_headers parse(rss_ url, extra_headers= {'Cache- control' : 'max-age=60'}) parse(rss_ url, request_ headers= {'Cache- control' : 'max-age=60'})
entries. append( dict(
print "fetching data from %s" % (rss_url,)
- # we use our own copy of feedparser with a patch to let
- # <http://
- # be passed
- d = feedparser.
+ d = feedparser.
entries = []
for entry in d.entries[0:count]: