如何在Tweepy中按user_id或user_name搜索?

问题描述 投票:0回答:1

[有人可以告诉我如何使用Tweepy通过特定的user_iduser_name检索推文吗?到目前为止,我只有这个:

new_tweets = api.search(q=keyword, count=tweetsPerQry, geocode="23.5021579914,40.8558165767,500km" )

通过特定地理位置返回Tweets,但我希望它通过user_id返回Tweets。

python twitter tweepy tweets
1个回答
0
投票

您可以使用API.user_timeline,后者使用API.user_timeline

© www.soinside.com 2019 - 2024. All rights reserved.