Aneesh
Aneesh

Reputation: 69

How to use API.statuses_lookup in Tweepy

I am looking an example how to use "API.statuses_lookup".

Upvotes: 0

Views: 3505

Answers (1)

user7106300
user7106300

Reputation:

use

tweets = self.api.statuses_lookup(tweetIDs)

tweetIDs is a list of your tweet ids ,which u have from ur database or somewhere else in response you will get a status object now use for loop

**for tweet in tweets:
   #tweet obtained
   print(str(tweet['id'])+str(tweet['text']))**

u can provide maximum 100 tweets

Upvotes: 2

Related Questions