【发布时间】:2016-09-16 13:52:11
【问题描述】:
我在 python 中使用 feed 解析器,我是 python 的初学者。
for post in d.entries:
if test_word3 and test_word2 in post.title:
print(post.title)
我要做的是让提要解析器在 RSS 提要的标题中找到几个单词。
【问题讨论】:
-
你能告诉我们输入是什么,输出应该是什么?
-
使用
and,而不是&&。见stackoverflow.com/questions/2485466/…
标签: python parsing rss feed feedparser