This script can be used to:
- Extract user tweets
- Search for tweets by keyword
- Search for tweets in a certain country(using country codes)
(Adjust the function calls to suit your need)
To be able to successfully run the script, you'll need authentication from Twitter.
See the guide to get authentication credentials here.
Used is the Twitter API tweepy ,here is it's documentation.