开发者

get veehd url in bash/python?

开发者 https://www.devze.com 2023-03-24 02:04 出处:网络
Can anybody figure out how to get the .avi URL of a veehd[dot]com video, by providing the page of the video in a script? It can be BASH, or Python, or common programs i开发者_如何学运维n Ubuntu.

Can anybody figure out how to get the .avi URL of a veehd[dot]com video, by providing the page of the video in a script? It can be BASH, or Python, or common programs i开发者_如何学运维n Ubuntu.

They make you install a extension, and I've tried looking at the code but I can't figure it out.


This worked for me:

#!/bin/bash
URL=$1 # page with the video
FRAME=`wget -q -O - $URL | sed -n -e '/playeriframe.*do=d/{s/.*src : "//;s/".*//p;q}'`
STREAM=`wget -q -O - http://veehd.com$FRAME | sed -n -e '/<a/{s/.*href="//;s/".*//p;q}'`
echo $STREAM
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号