Skip to content

Instantly share code, notes, and snippets.

@sinegar
Created December 11, 2012 06:10
Show Gist options
  • Save sinegar/4256273 to your computer and use it in GitHub Desktop.
Save sinegar/4256273 to your computer and use it in GitHub Desktop.
Get arte rtmp url
#!/bin/sh
# Get the RTMP url of an arte video url
# based on http://blog.wirhabenstil.de/2012/01/25/downloading-arte-7-is-just-a-one-liner-in-linux/
curl "$1" | grep CasPlayerXml.xml | sed "s/%2F/\//g" | cut -d"=" -f11 | grep videos | sed -e "s/\"//g" -e "s/%7B/:/g" -e "s/%3A/:/g" | xargs curl | grep \"fr\" | cut -d" " -f3 | cut -d"\"" -f2 | xargs curl | grep \"sd\" | cut -d">" -f2 | cut -d"<" -f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment