this command can get the useful information in a youtube page
for someone to download flv
parse it, etc
curl -s "http://www.youtube.com/watch?v=7K49OUtvQOw" | sed -e "/SWF_ARGS/!d" -e "s/,/\r\n/g" -e "s/%3A/:/g" -e "s/%2F/\//g" -e "s/%252C/,/g" -e "s/%3F/?/g" -e "s/%3D/=/g" -e "s/%26/\&/g" -e "s/%2C/,/g" -e "s/%7C/\x7C/g" -e "s/\x7C/\r\n/g"
I am using gnused on windows, so it is \xNN support, NN is hex value of a char, and \r\n for a new line in MS windows
\x7C is vertical bar , and so on
Thursday, 14 January 2010
Subscribe to:
Post Comments (Atom)
Labels
- ahk (1)
- android (1)
- apache (1)
- cifs (1)
- cygwin (2)
- E17 (1)
- gOS (1)
- grldr (4)
- grub (4)
- linux (5)
- mp4 (4)
- mysql (2)
- mytv (5)
- mytv download (5)
- php (2)
- pidgin (1)
- pxe (1)
- rtmp (7)
- rtmpdump (1)
- rtmpe (5)
- samba (1)
- sed (5)
- ssed (4)
- tvb (1)
- tvb.com (6)
- tvb.com.hk (6)
- ubuntu (2)
- virtualbox (1)
- winflp (1)
- xargs (1)
No comments:
Post a Comment