【发布时间】:2020-05-01 05:47:46
【问题描述】:
我想过滤来自具有特定#hashtag 的特定用户的推文。我正在使用 Tweepy 包和 Python。
这是我的代码:
tt=tweepy.Cursor(api.user_timeline,
q='#eko_kendimenotlar',
id=42209639,
page=1,
count=10,
tweet_mode='extended').items()
for i in tt:
print(i.full_text)
但我从用户那里获得所有推文,而不是按标签过滤的推文。
【问题讨论】:
标签: python python-3.x twitter tweepy tweets