Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #70620
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-04-25 19:16 -0700 |
| Message-ID | <4f7cfadc-6b9b-488a-b2cd-b90dd53acbfc@googlegroups.com> (permalink) |
| Subject | feedparser error |
| From | tad na <teddybubu@gmail.com> |
python 2.7.2
The following code has an error and I can not figure out why:
import feedparser
d = feedparser.parse('http://bl.ocks.org/mbostock.rss')
numb = len(d['entries'])
for post in d.entries:
print post.pubDate+"\n"
-----------------------------------
the error is :
print post.pubDate+"\n"
File "build\bdist.win32\egg\feedparser.py", line 416, in __getattr__
raise AttributeError, "object has no attribute '%s'" % key
AttributeError: object has no attribute 'pubDate'
-----------------------------------
The only thing I can think of is feedparser does not like uppercase(pubDate)?????
I can not change someone else's rss. What can I do here?
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
feedparser error tad na <teddybubu@gmail.com> - 2014-04-25 19:16 -0700
Re: feedparser error Kushal Kumaran <kushal.kumaran@gmail.com> - 2014-04-26 22:17 +0530
Re: feedparser error MRAB <python@mrabarnett.plus.com> - 2014-04-26 17:55 +0100
Re: feedparser error tad na <teddybubu@gmail.com> - 2014-04-26 12:22 -0700
csiph-web