covid19report repo

bmaxa

Legenda
Poruka
70.813
Napravio sam programce koje skida sa githuba dnevne podatke o kovid 19, evo ovde https://github.com/bmaxa/covid19report
Znaci klasika git skine se u lokalni dir, pa onda `cargo build --release`, instalirate Rust recimo sa https://rustup.rs/
.
Ima dva programa jedan je import_data za import sa githuba (bes github naloga treba sat vremena da se skinu podaci),
a drugi je da se izvuku izvestaji na osnovu json fajla koji import napravi. fajl se napravi u trenutnom diru i odatle se i cita.
evo primera:
Kod:
~/.../rust/covid19report >>> ./target/release/reports  --columns Country,Confirmed,Deaths,Recovered,Active,Last_update                                 
Country             Confirmed           Deaths              Recovered           Active              Last_update         
US                  667801              32916               54703               580182              2020-04-16 23:30:51 
Spain               184948              19315               74797               90836               2020-04-16 23:30:31 
Italy               168941              22170               40164               106607              2020-04-16 23:30:31 
France              147091              17941               33327               95823               2020-04-16 23:30:31 
Germany             137698              4052                77000               56646               2020-04-16 23:30:31 
~/.../rust/covid19report >>>         
~/.../rust/covid19report >>> ./target/release/reports --results 10 --key recovered                                                                                                           ±[●][master]
COUNTRY             CONFIRMED           DEATHS              RECOVERED           ACTIVE              
China               83403               3346                78401               1656                
Germany             137698              4052                77000               56646               
Spain               184948              19315               74797               90836               
US                  667801              32916               54703               580182              
Iran                77995               4869                52229               20897               
Italy               168941              22170               40164               106607              
France              147091              17941               33327               95823               
Switzerland         26732               1281                15900               9551                
Brazil              30425               1924                14026               14475               
Canada              30809               1258                9698                19853              
~/.../rust/covid19report >>> ./target/release/reports --key country --key_value serbia                                                                                                       ±[●][master]
COUNTRY             CONFIRMED           DEATHS              RECOVERED           ACTIVE              
Serbia              5318                103                 0                   5215
To nakon sto se pokrene:
Kod:
~/.../rust/covid19report >>> ./target/release/import_data -h                                                                                                                                 ±[●][master]
Usage: ./target/release/import_data [options]

Options:
    -p, --password password
                        set password
    -u, --username username
                        set username
    -h, --help          this help

Eto malo sam ubio slobodno vreme :P
 

Back
Top