Skip to content

Instantly share code, notes, and snippets.

@rtanglao
Last active November 2, 2020 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtanglao/3aeb9ef59ce1411e8b70329561296eca to your computer and use it in GitHub Desktop.
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
# 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