【发布时间】:2019-10-13 10:46:05
【问题描述】:
谁能告诉我如何使用 Tweepy 检索某个 user_id 或 user_name 的推文?到目前为止我只有这个:
new_tweets = api.search(q=keyword, count=tweetsPerQry, geocode="23.5021579914,40.8558165767,500km" )
通过某个地理位置返回推文,但我希望它通过user_id返回推文。
【问题讨论】:
-
@ArtyomNeustroev 那里没有通过 user_id 检索推文的命令
-
@GaMeRGaMeR 在 API 参考中查找
.statuses_lookup() -
有一个
.user_timeline方法,它不符合您的意图吗? tweepy.readthedocs.io/en/latest/api.html#API.user_timeline
标签: python twitter tweepy tweets