项目作者: vagra

项目描述 :
using colly obtain covid data from worldometers.info per day, and show a 'daily-cases/daily-deaths' chart using d3.js
高级语言: JavaScript
项目地址: git://github.com/vagra/covid.git
创建时间: 2020-05-05T10:24:42Z
项目社区:https://github.com/vagra/covid

开源协议:MIT License

下载


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:

  1. python -m http.server 80

step-2: build and first run

  1. go build

this generate a executable file covid.

then run:

  1. ./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

  1. crontab -e
  2. 15 8-10 * * * /your_server/covid/covid

step-4: visit site

  1. https://your_server.com/covid