Last active
November 2, 2020 02:21
-
-
Save rtanglao/3aeb9ef59ce1411e8b70329561296eca to your computer and use it in GitHub Desktop.
how to get covid 19 html using curl, jq and the ontario unofficial API that @roryrooster on twitter discovered
This file contains 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
# use sed on WSL and linux instead of gsed | |
curl "https://api.ontario.ca/api/drupal/page%2Fhow-ontario-is-responding-covid-19?fields=nid,field_body_beta,body" | jq ".body.und[0].value" | gsed 's/\\n/\n/g; s/\\t/\t/g' >cleaned2-ontario-COVID-19-daily-summary.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment