我在从我抓取的几个博客提要中获取内容时遇到了问题。
I'm uncertain what is the reason, but by parsing one or two blogs with the feedparser returns me this particular error:
results = feedparser.parse(url)
ent = []
for entry in results.entries:
e = {}
e['title'] = entry.title
e['content'] = entry.content[0].value
object has no attribute 'content'
or
object has no attribute 'link'
This hasn't been the case for the rest of my other blogs. Does empty entry content results in this?