This python script uses the Twitter API to get all tweets about a certain subject in the last 7 days. Coursework for Leiden University of Applied Sciences (Business data management).
Usage:
- Install the requests dependency:
python -m pip install requests
- Download the tweetExtractor.py file
- Execute the tweetExtactor.py file:
python tweetExtractor.py <subject>
- Enter your Twitter API Bearer token.
- Wait for the script to finish.
- A file called output.csv gets generated with all the found tweets.