covid-19
(require covid-19) will do the same as (require covid-19/qq covid-19/sina).
There is also a website whose data is drived by this pkg for you to check with:
https://www.yanying.wang/daily-report/.
1 QQ
(require covid-19/qq) | package: covid-19 |
parameter
(covid-19/reload-data/qq v) β void? v : boolean?
= #t
procedure
procedure
(qq/data/china-total) β hash-eq?
procedure
(qq/data/china-add) β hash-eq?
procedure
(qq/data/all-provinces) β list?
procedure
(qq/get-region province-name city-name) β hash-eq?
province-name : (or/c string? symbol?) city-name : (or/c string? symbol?)
> (qq/get-region 'ζ²³ε) tcp-connect: host not found
hostname: api.inews.qq.com
port number: 443
system error: Temporary failure in name resolution;
gai_err=-3
> (qq/get-region 'ζ²³ε 'ιε·) tcp-connect: host not found
hostname: api.inews.qq.com
port number: 443
system error: Temporary failure in name resolution;
gai_err=-3
procedure
(qq/get-num node-data [type1 type2]) β number?
node-data : (hash-eq?) type1 : (or/c 'confirm 'dead) = 'confirm type2 : (or/c 'today 'total) = 'today
> (qq/get-num (qq/get-region 'ζ²³ε) 'confirm 'total) tcp-connect: host not found
hostname: api.inews.qq.com
port number: 443
system error: Temporary failure in name resolution;
gai_err=-3
procedure
(qq/get-num* province-name [ type1 type2 #:city city-name]) β number? province-name : symbol? type1 : (or/c 'confirm 'dead) = 'confirm type2 : (or/c 'today 'total) = 'today city-name : string? = #f
> (qq/get-num* 'ζ²³ε) tcp-connect: host not found
hostname: api.inews.qq.com
port number: 443
system error: Temporary failure in name resolution;
gai_err=-3
> (qq/get-num* 'ζ²³ε 'confirm 'total) tcp-connect: host not found
hostname: api.inews.qq.com
port number: 443
system error: Temporary failure in name resolution;
gai_err=-3
> (qq/get-num* 'ζ²³ε 'confirm 'total #:city 'ιε·) tcp-connect: host not found
hostname: api.inews.qq.com
port number: 443
system error: Temporary failure in name resolution;
gai_err=-3
> (qq/get-num* 'δΈζ΅· 'confirm 'total #:city 'εΎζ±) tcp-connect: host not found
hostname: api.inews.qq.com
port number: 443
system error: Temporary failure in name resolution;
gai_err=-3
procedure
(qq/sort+filter-by type1 type2) β list?
type1 : (or/c 'confirm 'dead) type2 : (or/c 'today 'total)
> (qq/sort+filter-by 'confirm 'total) tcp-connect: host not found
hostname: api.inews.qq.com
port number: 443
system error: Temporary failure in name resolution;
gai_err=-3
2 Sina
(require covid-19/sina) | package: covid-19 |
parameter
(covid-19/reload-data/sina v) β void? v : boolean?
= #t
procedure
procedure
(sina/data/list) β list?
procedure
(sina/data/otherlist) β list?
procedure
(sina/contries/sort+filter-by type) β number?
type : (or/c 'conNum 'conadd 'deathNum 'deathadd)
> (sina/contries/sort+filter-by 'conNum) tcp-connect: host not found
hostname: interface.sina.cn
port number: 443
system error: Temporary failure in name resolution;
gai_err=-3