Created
December 6, 2021 20:36
-
-
Save ThomasG77/fdd290466b27483228fe90a7c3921f15 to your computer and use it in GitHub Desktop.
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
current_date=$(date +%Y-%m-%d) | |
curl "https://www.metoffice.gov.uk/weather/warnings-and-advice/uk-warnings#?date=${current_date}" \ | |
| grep "window.metoffice.warnings.geojson" \ | |
| sed 's/window.metoffice.warnings.geojson = \|;$//g' \ | |
>| "/tmp/metoffice-${current_date}.json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment