python feedparser未解析。“它给我一个错误,即对象没有属性image。”
rss源:
thenews = 'https://www.thenews.com.pk/rss/1/1'这不起作用:
d = feedparser.parse(thenews)
print d.feed.image发布于 2018-04-18 03:03:31
问题是您正在使用的提要不包含图像。如果你
print d.feed
您将看到提要的可用字段。或者,您可以直接查看源https://www.thenews.com.pk/rss/1/1 (没有用于channel的image标记)。
https://stackoverflow.com/questions/49884912
复制相似问题