Python — How to Extract Tweets from Twitter

Ryan Arjun
6 min readAug 26, 2020

If you are working as Python developer and you have to extract tweets from Twitter for any specific hashtag then there are a lot of libraries which help us to accomplish this task.

Step 1 — How do we get a Twitter Consumer Key and Consumer Secret key?

First of all, we have to create a Twitter account and get the necessary credentials on the Twitter developer platform to access the Twitter API by following these steps:

  1. Go to https://dev.twitter.com/apps/new

--

--

Ryan Arjun

BI Specialist || Azure || AWS || GCP — SQL|Python|PySpark — Talend, Alteryx, SSIS — PowerBI, Tableau, SSRS