Python 如何在Tweepy中使用API.statuses\u查找
我正在看一个如何使用“API.statuses\u lookup”的示例。使用Python 如何在Tweepy中使用API.statuses\u查找,python,twitter,tweepy,Python,Twitter,Tweepy,我正在看一个如何使用“API.statuses\u lookup”的示例。使用 tweets = self.api.statuses_lookup(tweetIDs) TweetId是您的tweet ID列表,您可以从您的数据库或其他地方获得这些ID 作为响应,您将得到一个状态对象 现在使用for循环 **for tweet in tweets: #tweet obtained print(str(tweet['id'])+str(tweet['text']))** u最多可提供
tweets = self.api.statuses_lookup(tweetIDs)
TweetId是您的tweet ID列表,您可以从您的数据库或其他地方获得这些ID
作为响应,您将得到一个状态对象
现在使用for循环
**for tweet in tweets:
#tweet obtained
print(str(tweet['id'])+str(tweet['text']))**
u最多可提供100条推文使用
tweets = self.api.statuses_lookup(tweetIDs)
TweetId是您的tweet ID列表,您可以从您的数据库或其他地方获得这些ID
作为响应,您将得到一个状态对象
现在使用for循环
**for tweet in tweets:
#tweet obtained
print(str(tweet['id'])+str(tweet['text']))**
你最多可以提供100条推文