Skip to content

Instantly share code, notes, and snippets.

@snipem
Last active November 14, 2017 18:18
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 snipem/cc7dab6b65625dabec65c301b314055d to your computer and use it in GitHub Desktop.
Save snipem/cc7dab6b65625dabec65c301b314055d to your computer and use it in GitHub Desktop.
Searches arte.tv for content in Arte Mediathek. Returns url to the video to be used in youtube-dl
#!/bin/bash
# run: arte.sh "mit offenen karten"
query=$(echo "$@" | jq -s -R -r @uri)
curl -s "https://www.arte.tv/guide/api/api/search/de/$query/1/" |
jq -r .teasers[].url | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment