Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Primitive scraper for ZH #64

Closed
baryluk opened this issue Mar 21, 2020 · 1 comment
Closed

Primitive scraper for ZH #64

baryluk opened this issue Mar 21, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@baryluk
Copy link
Contributor

baryluk commented Mar 21, 2020

echo ZH; d=$(curl --silent https://gd.zh.ch/internet/gesundheitsdirektion/de/themen/coronavirus.html | egrep "Im Kanton Zürich sind zurzeit|\\(Stand"); echo "Scraped at $(date --iso-8601=seconds)"; echo -n "Date and time: "; echo "$d" | sed -E -e 's/.*Stand (.+) Uhr.*/\1/'; echo -n "Confirmed cases: "; echo "$d" | sed -e 's/ /\n/g' | egrep '[0-9]+' | head -1
ZH
Scraped at 2020-03-21T15:25:55+00:00
Date and time: 20.3.2020, 16.30
Confirmed cases: 773
@tlorusso tlorusso added the enhancement New feature or request label Mar 21, 2020
@zdavatz
Copy link
Contributor

zdavatz commented Mar 21, 2020

nice! Works great!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants