From the course: Python Projects

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Trending X (formerly known as Twitter) topics

Trending X (formerly known as Twitter) topics - Python Tutorial

From the course: Python Projects

Trending X (formerly known as Twitter) topics

- [Instructor] Continuing to build out my DD content module, my next function to implement is the function to get current Twitter trends. Fortunately, Twitter has an API that enables software developers to do just that, which you can read about in the documentation on their website. As with the OpenWeatherMap API, you'll need to register a Twitter account and request access to the API, which will give you an API key. You can find instructions for that on the Getting started page under the Getting access to the Twitter API section. Now, as I looked through the Twitter API documentation, I noticed that the APIs authentication process looked a bit more complicated than I wanted to deal with. So rather than figuring out how to implement that myself, I decided to see if there was an existing Python library, I could use to interface with the Twitter API. I started my search for a Twitter library at pypi.org by searching for, well, Twitter. The first result was a library simply named…

Contents