Coronavirus tracker for the state of New Jersey. Built with Requests, implemented in Python. Seeing that cases keep rising, it's important to be aware of the new developments in cases, vaccines, and tests.
To get this web scraper running locally, the setup is very minimal. The only step is to edit the .env
file with your information.
API_KEY =
API_SECRET =
BEARER_TOKEN =
ACCESS_TOKEN =
ACCESS_TOKEN_SECRET =
You can get your own API keys from the Twitter Developer page. Just create a Twitter Developer Account, and create an app. Generate its API keys, and this is important: you must give it permissions to write and read to your twitter account. Once you do that, copy the keys and paste them into their appropriate fields in the .env
file.
2) Second, in the WHEN_TO_RUN
field, specify when you want the program to run in 24H time. For example, if you want it to run at 4:30 PM
, enter 16:30
.
3) Last, you need to install the dependencies. Run these commands, and then you should be good to run the program!
pip install requests
pip install tweepy
pip install python-dotenv
pip install schedule