Feedparser problem
Peter Otten
__peter__ at web.de
Fri Jun 5 03:22:30 EDT 2009
Jonathan Nelson wrote:
> I'm trying to add a feedreader element to my django project. I'm
> using Mark Pilgrim's great feedparser library. I've used it before
> without any problems. I'm getting a TypeError I can't figure out.
> I've tried searching google, bing, google groups to no avail.
>
> Here's the dpaste of what I'm trying to do and the result I'm
> getting:
> >>>import feedparser
> >>>url='http://feeds.nytimes.com/nyt/rss/Technology'
> >>>d=feedparser.parse(url)
> >>>d
> {'bozo':1,
> 'bozo_exception': TypeError("__init__() got an unexpected keyword argument
'timeout'",),
> 'encoding': 'utf-8',
> 'entries': [],
> 'feed':{},
> 'version': None}
> I've tried checking my firewall settings. I'm using Windows 7 and
> Python 2.6. Win 7 is allowing other Python programs through. I've
> tried several different RSS urls with the same result.
>
> Any thoughts would be greatly appreciated.
Which version of feedparser are you using? In the 4.1 source 'timeout'
occurs only in a comment.
Peter
More information about the Python-list
mailing list