https://github.com/davidmyersdev/covid
Post a tweet with the current status of COVID in Ohio, USA.
https://github.com/davidmyersdev/covid
Last synced: about 2 months ago
JSON representation
Post a tweet with the current status of COVID in Ohio, USA.
- Host: GitHub
- URL: https://github.com/davidmyersdev/covid
- Owner: davidmyersdev
- Created: 2020-03-21T00:20:50.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T15:31:25.000Z (over 3 years ago)
- Last Synced: 2025-12-30T17:34:37.521Z (6 months ago)
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.worldometers.info/coronavirus) using [NovelCOVID/API](https://github.com/NovelCOVID/API).
## how to run
Create a `.env` file. Add the following to it.
```shell
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.
```shell
# install dependencies
bundle
# run script
ruby tweet.rb
```