vagra / covid

using colly obtain covid data from worldometers.info per day, and show a 'daily-cases/daily-deaths' chart using d3.js

Home Page:https://kepan.org/covid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

covid

using colly obtain covid data from worldometers.info per day, and show a 'daily-cases/daily-deaths' chart using d3

step-1: update files to server

or using some local web server like Python:

python -m http.server 80

step-2: build and first run

go build

this generate a executable file covid.

then run:

./covid

this obtain all data from worldometers.info and save to data folder.

step-3: add sceduled task

let covid auto obtain data once per day.

window: using scheduled tasks linux: using crontab

crontab -e
15 8-10 * * *  /your_server/covid/covid

step-4: visit site

https://your_server.com/covid

About

using colly obtain covid data from worldometers.info per day, and show a 'daily-cases/daily-deaths' chart using d3.js

https://kepan.org/covid

License:MIT License


Languages

Language:JavaScript 97.0%Language:HTML 1.2%Language:Go 0.9%Language:CSS 0.9%