/TweetExtractor

Extract tweets about a subject from the last 7 days

Primary LanguagePython

Tweet Extractor

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:

  1. Install the requests dependency: python -m pip install requests
  2. Download the tweetExtractor.py file
  3. Execute the tweetExtactor.py file: python tweetExtractor.py <subject>
  4. Enter your Twitter API Bearer token.
  5. Wait for the script to finish.
  6. A file called output.csv gets generated with all the found tweets.