admin 管理员组文章数量: 887021
2024年1月13日发(作者:zwear钢属于什么级别)
require "";if(@$_GET["aweme_id"]==""){ $aweme_id="6816604";//视频id
}else{ $aweme_id=$_GET["aweme_id"];}if(@$_GET["cursor"]==""){ $cursor=0;//分页,每次加20条}else{ $cursor=$_GET["cursor"];}$ts=floor(getMillisecond()/1000);$_rticket=getMillisecond();$cookie='odin_tt=d296eed92fc94190097ef3311b590355d87d4938a3c0a03fb1f7951d49d330dac7d22ee338409924bb57f11c59523f0a3b243e126d32aafefc77a1054088dc57; uid_tt=a1f7f2b0aefb7e6f10658083ca2bfb8f; uid_tt_ss=a1f7f2b0aefb7e6f10658083ca2bfb8f; sid_tt=861d0d1876038df131e0fd31895e7a7e; sessionid=861d0d1876038df131e0fd31895e7a7e; sessionid_ss=861d0d1876038df131e0fd31895e7a7e; install_id=2; ttreq=1$ed9b9ef0b79f17bb4439d40deb5bd0e839a6406d; sid_guard=861d0d1876038df131e0fd31895e7a7e%7C1587288582%7C5184000%7CThu%2C+18-Jun-2020+09%3A29%3A42+GMT; SLARDAR_WEB_ID=08c83f7f-e42a-4454-a8db-21c62112d6e9';$url = '/aweme/v2/comment/list/?aweme_id='.$aweme_id.'&cursor='.$cursor.'&count=20&address_book_access=1&gps_access=1&forward_page_type=1&channel_id=0&city=610700&hotsoon_filtered_count=0&hotsoon_has_more=0&os_api=22&device_type=HUAWEI%20MLA-AL10&ssmix=a&manifest_version_code=100501&dpi=240&uuid=863&app_name=aweme&version_name=10.5.0&ts='.$ts.'&app_type=normal&ac=wifi&update_version_code=10509900&channel=aweGW&_rticket='.$_rticket.'&device_platform=android&iid=2&version_code=100500&cdid=36db7bfc-b670-4fa8-815f-6a352b973cd1&openudid=4cedfb75190b8733&device_id=69244350688&resolution=720*1280&os_version=5.1.1&language=zh&device_brand=HUAWEI&aid=1128&mcc_mnc=46007';$gorgon=getXg($url,$cookie,$ts,$_rticket);$headers[] = "Host:";$headers[] = "Connection: keep-alive";$headers[] = 'Cookie: '.$cookie;$headers[] = "X-SS-REQ-TICKET: 35";$headers[] = "X-Tt-Token: 00861d0d1876038df131e0fd31895e7a7ec84405d255864de8fb1c72cfba5b43f47abc1d13178401d7eccc11394ed2d84755";$headers[] = "sdk-version: 1";$headers[] = "x-tt-trace-id: 00-dd4e1bf00a101f48f0e0fa15bc950468-dd4e1bf00a101f48-01";$headers[] = "User-Agent: /100501 (Linux; U; Android 5.1.1; zh_CN; HUAWEI MLA-AL10; Build/HUAWEIMLA-AL10; Cronet/TTNetVersion:3154e555 2020-03-04 QuicVersion:8fc8a2f3 2020-03-02)";$headers[] = "X-Gorgon: ".$gorgon;$headers[] = "X-Khronos: ".$ts;$curl = curl_init();curl_setopt($curl,CURLOPT_URL,$url);curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);curl_setopt($curl, CURLOPT_HTTPHEADER,$headers);curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
$data = curl_exec($curl);echo $data;curl_close($curl);
>获取x-gorgon的代码
版权声明:本文标题:php获取抖音xgorgon,爬取抖音数据,可以直接调用的抖音接口 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1705117352h473464.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论