To get the archive that the Python script operates on:
- Visit https://twitter.com
- From the menu, select "More" → "Settings and privacy", which will take you to the Settings page.
- On the Settings page, pick "Your Twitter data" → "Download archive".
NOTE: You will get a tweet and an email when the data is ready to be downloaded. It will be a large ZIP file. When you unzip it, it does not create a directory to contain the contents, so you probably want to create a directory with a name like twitter
, put the ZIP file in there, and then unzip it. (Cleverer ways to accomplish this in one sh
command are left as an exercise for the reader.)