Skip to content

Instantly share code, notes, and snippets.

@seandavi
Created May 2, 2024 16:01
Show Gist options
  • Save seandavi/01383eb5b68eabd3ee7f10f6656b22dd to your computer and use it in GitHub Desktop.
Save seandavi/01383eb5b68eabd3ee7f10f6656b22dd to your computer and use it in GitHub Desktop.
Create jsonlines of US CDC cancer incidence data release
#!/bin/bash
curl https://gis.cdc.gov/Cancer/DataVizApi/GetJSON/USCS_County | sed -e 's/<string xmlns="http:\/\/schemas.microsoft.com\/2003\/10\/Serialization\/">//g' -e 's/<\/string>//g'| jq -c '.[] | .USCS_County[]' > output.jsonl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment