davidmyersdev / covid

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:Ruby 100.0%