Get the Twitter API key
- Visit the Twitter Developers site and sign in with your Twitter account
- Go to Twitter Application and create an Twitter application. (Your interface may different from mine.)

- At the detail page, you can see the API key & secret.

- Then generate the access token and secret.

Crawl the Tweets
- Some libraries will help you crawl the data. (BTW, I used Tweepy)
- The above API key is used when crawling the data.
My code is as follows:
import tweepy
auth = tweepy.OAuthHandler("Your API key", "Your API key secret")
auth.set_access_token("Your access token", "Your access token")
api = tweepy.API(auth)
- You can refer to the GET statuses/lookup method to get tweets by ID. It can get up to 100 tweets at a time.
My code is as follows:
api.statuses_lookup("Your ID list (max 100)", tweet_mode='extended', include_entities=True)