- Copy
conf/conf.example.jsontoconf/conf.json - Sign up for a New York Times API key
- Fill out the key and secret in
conf/conf.json(gitignored so no worries about checking in credentials) - Ignore Twitter auth stuff; decided to scrape public Twitter pages
- In some appropriate environment (virtual or otherwise), run
pip install -e .from the root directory of the project - In python, run
import nytwit(yes, I know this is insanity, feel free to pull out into a different script)
The code currently grabs data starting from January 1, 2019 (see line 32 in nytwit/__init.py__