-
-
Save tyjak/bdc2a310caeaa294188fbb0230ea7287 to your computer and use it in GitHub Desktop.
affiche le dernier R0 connu de la covid19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# affiche le dernier R0 connu du la COVID19 | |
python -c "import csv,codecs,json,urllib.request;print(json.dumps(list(csv.reader(codecs.iterdecode(urllib.request.urlopen('https://www.data.gouv.fr/fr/datasets/r/381a9472-ce83-407d-9a64-1b8c23af83df'), 'utf-8')))))" | jq '.[] | .[2]' | grep -v "NA" | tail -1 | tr -d '"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment