Last active
December 30, 2015 07:59
-
-
Save rxw1/7799625 to your computer and use it in GitHub Desktop.
Oneliner to download videos from Arte+7. There are many ways to do this and language or quality coud be set up as options. Requires urldecode.awk.
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
#!/usr/bin/env zsh | |
# 03/2013 | |
curl -s $1 |\ | |
awk '/embed src/' |\ | |
urldecode.awk |\ | |
grep -o 'http[a-zA-Z0-9.,:/_?=-]+asPlayerXml.xml' |\ | |
xargs curl -s |\ | |
grep -o 'http[a-zA-Z0-9.,:/_?=-]+xml' |\ | |
xargs curl -s |\ | |
grep '(hd|HQ|800)' |\ | |
grep DE |\ | |
grep -o 'rtmp[a-zA-Z0-9.,:/_?=-]+' |\ | |
xargs -I {} rtmpdump -r {} -o bla.flv | |
#for better copy and pasting: | |
# curl -s $1 | awk '/embed src/' | urldecode.awk | grep -o 'http[a-zA-Z0-9.,:/_?=-]+asPlayerXml.xml' | xargs curl -s | grep -o 'http[a-zA-Z0-9.,:/_?=-]+xml' | xargs curl -s | grep '(hd|HQ|800)' | grep DE | grep -o 'rtmp[a-zA-Z0-9.,:/_?=-]+' | xargs -I {} rtmpdump -r {} -o bla.flv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment