Skip to content
Walt Stoneburner edited this page May 14, 2018 · 1 revision

Description

This project is an experiment with the Twitter API and Python 3.

The objective is fairly simple:

  • Read one or more usernames from the command line
  • Generate a .csv file with some information pulled from their feeds

Several gotchas exist:

  • The free, standard API only lets you pull a finite amount (the collecting just stops when there is no more)
  • The free, standard API is rate limited to about 1500 API calls per 15 minute window (the app just keeps count, warning if this is exceeded)
  • The Twitter API uses a sliding cursor window (and that's what the app is managing)
  • The free, standard API requires a consumer key and secret in order to run (you have to go get one and stuff it in the code or the environment)

The app will produce a file in the current directory called tweets-YYYY-MM-DD-HH-MM-SS.csv, and can be imported into a spreadsheet.

Clone this wiki locally