Skip to content

Instantly share code, notes, and snippets.

@mperlet
Created December 10, 2020 13:19
Show Gist options
  • Save mperlet/1b493bcf5971f164dda19b9dab9d4313 to your computer and use it in GitHub Desktop.
Save mperlet/1b493bcf5971f164dda19b9dab9d4313 to your computer and use it in GitHub Desktop.
Shell function to read Ostsee-Zeitung Plus articles
function oz {
# bash> oz "https://www.ostsee-zeitung.de/Nachrichten/MV-aktuell/MV-plant-kompletten-Corona-Lockdown-in-wenigen-Tagen"
echo "{ $(curl -s "$1" | grep -o '\"description\":\".*')" | jq .articleBody
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment