/covid

Post a tweet with the current status of COVID in Ohio, USA.

Primary LanguageRuby

covid

Post a tweet with the current status of COVID in Ohio, USA.

about

This script posts a tweet for the authorized account similar to this.

[Automated] Ohio COVID update.

Cases: 174
Recovered: 0
Deaths: 3

Availability of tests impacts the accuracy of this data.

The data is pulled from worldometers.info using NovelCOVID/API.

how to run

Create a .env file. Add the following to it.

CONSUMER_KEY=your_consumer_key
CONSUMER_SECRET=your_consumer_secret
ACCESS_TOKEN=your_access_token
ACCESS_TOKEN_SECRET=your_access_token_secret

Install dependencies, and run the script.

# install dependencies
bundle

# run script
ruby tweet.rb