What questions is the New York Times asking today?
A Twitter bot inspired by this tweet from Jer Thorp, as well as @NYT_first_said and @nyt_diff. Checks the Times Wire API every 10 minutes for new questions.
Uses Python, tweepy, and a Github Action. S/o to this post by Emily Cain for the guiding method.
To get started, run the following from your terminal:
- Clone this repository and
cd
into your local copy.
git clone [email protected]:beamalsky/nytquestions.git
cd nytquestions
-
Switch the
LOCAL_DEVELOPMENT
variable inbot.py
toTrue
-
Rename
secrets_example.py
tosecrets.py
:
mv secrets_example.py secrets.py
-
You'll need your own Twitter and NYT API keys. Get them and fill them in to your new
secrets.py
file. -
Run the app locally!
docker-compose run --rm app python bot.py