This tutorial explains how to extract and analyze data from Twitter api. This repository is divided in several directories, each one contains a specific snippet of code.
Feel free to clone and modify the code as you wish.
Don't forget to put the credentials of the app you registered in the config.ini file, otherwise, the code will not work.
Website: https://pythonstack.org