标签: python python-twitter
我正在编写一个函数,该函数使用python-twitter过滤我的时间轴的关键字。 我不知道如何在时间轴中过滤推文。 我应该使用GetSearch(term = keyword)吗?
import twitter api = twitter.Api(my keys) timelines = api.GetHomeTimeline() for lines in timelines: print(lines.text)