In this section, we will learn how to manage and interact with the Twitter API in Python 3.7.
Interacting with a JSON hybrid-REST API (Twitter)
The Twitter API
The Twitter API provides access to all the functions that we may want a Twitter client to perform. With the Twitter API, we can create clients that search for recent Tweets, find out what's trending, look up user details, follow users' timelines, and even act on behalf of users by posting tweets and sending direct messages for them.
The Twitter module is based on the Twitter REST API located at https://developer.twitter.com/en/docs/tweets/search/api-reference.html.
You can install it with the pip install twitter command:
Collecting twitter
Downloading https...