admin

抓包爱奇艺和优酷会员API
抓自:vip.vipfenxiang.com 代码很简单,可能会失效,自己改改又能用了 就抓了两个简单的,可以看着...
扫描右侧二维码阅读全文
13
2017/08

抓包爱奇艺和优酷会员API

抓自:vip.vipfenxiang.com 代码很简单,可能会失效,自己改改又能用了 就抓了两个简单的,可以看着代码尝试抓其他的

if($type == 'iqiyi'){
 $url1 = 'http://vip.vipfenxiang.com/iqiyi/'; 
    $get1 = file_get_contents($url1);
    $preg0 = '#<header><h2><a href="(.*)" title="#';
 preg_match ($preg0,$get1,$out1);
    $url2 = mb_substr($out1[0], 0, 412);
 preg_match ($preg0,$url2,$url3);
    $get2 = file_get_contents($url3[2]);
    $preg1 = '#;">账号(.*)<br />#';
 preg_match ($preg1,$get2,$out2);
 $preg2 = '#账号(.*)<br#';
 preg_match ($preg2,$out2[0],$out3);
 $out4 = mb_substr($out3[0],0,-3);
 $out5 = str_replace('账号','账号:',$out4);
 $out6 = str_replace('密码',' 密码:',$out5);
echo '获取的爱奇艺VIP帐号密码如下:【换行】'.$out6.'【换行】如出现抓取异常请及时联系管理员解决!';
}elseif($type == 'youku'){
    $url1 = 'http://vip.vipfenxiang.com/yk/'; 
 $out1 = file_get_contents($url1);
 $preg1 = '#</a></strong></h1><article class="excerpt excerpt-one"><header><h2><a href="(.*)" title="#';
 preg_match ($preg1,$out1,$out2);
 $out3 = mb_substr($out2[0], 0, 412);
    $preg2 = '#"><header><h2><a href="(.*)" title="#';
 preg_match ($preg2,$out3,$out4);
 $out5 = file_get_contents($out4[1]);
    $preg3 = '#;">账号(.*)</span></p>#';
 preg_match ($preg3,$out5,$out6);
 $preg4 = '#;">(.*)</span></p>#';
 preg_match ($preg4,$out6[0],$out7);
echo '获取的优酷VIP帐号密码如下:【换行】'.$out7[1].'【换行】如出现抓取异常请及时联系管理员解决!';
}
Last modification:February 1st, 2018 at 09:52 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment