1
daiv 2015-02-09 09:35:36 +08:00
以前有网址的,但是现在忘记了
|
2
isnowify 2015-02-09 10:00:51 +08:00 via iPad
用它们的api,现在封了
|
3
esile 2015-02-09 10:43:36 +08:00 via iPhone
买个vip然后模拟登陆保存cookies,web页面请求都带上cookies去抓取然后显示出来。有点视频站有获取视频播放地址的API,只要你带上有播放权限的账号cookies去请求就可以得到播放地址数据!
|
5
lingrel 2015-02-09 11:29:30 +08:00
是所谓的盗链么?
|
6
fyhqy 2015-02-09 11:42:10 +08:00
其实并不是这样的。只是默认用falsh 把断流的一段段重新组起来而已!
<pre> const USER_AGENT = "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36"; const REFERER = "http://www.youku.com"; const FORM_ENCODE = "GBK"; const TO_ENCODE = "UTF-8"; private static $base = "http://v.youku.com/player/getPlaylist/VideoIDS/"; private static $source = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/\\:._-1234567890"; private static $sz = '-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1'; private static $str = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; public static function parse($url){ preg_match("#id\_([\w=]+)#", $url, $matches); //id里可以有=号 if (empty($matches)){ $html = self::_cget($url); preg_match("#videoId2\s*=\s*\'(\w+)\'#", $html, $matches); if(!$matches) return false; } //根据you vid 获取相应的视频地址 return self::_getYouku(trim($matches[1])); } </pre> |
7
loadingimg 2015-02-09 13:09:37 +08:00
|
8
em70 2015-02-09 14:10:35 +08:00 via Android
分析播放器和服务器之间的通讯协议就可以绕过验证直接拿到播放地址,然后用自己的播放器播放就行了,视频网站对这个防范很弱。不过还是多支持一下视频网站吧,活得不容易
|
9
cqcn1991 2015-02-09 14:18:52 +08:00 via iPhone
现在还能做吗?怎么去广告?
|