企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 获取百度指数 * 案例 ~~~ $obj = 'BAIDUID 700F0BF3C5CFA01D7E9B10F4D610A4FF:FG=1 BIDUPSID 700F0BF3C5CFA01D7E9B10F4D610A4FF PSTM 1571044506 MCITY -%3A BDORZ B490B5EBF6F3CD402E515D22BCDA1598 H_PS_PSSID 30963_1437_21125_30794_30908_30824_31085_26350 yjs_js_security_passport 29a7bb0efc3be57b5dfaee6a983fa49d7c6ad803_1584090758_js Hm_lvt_d101ea4d2a5c67dab98251f0b5de24dc 1584083415,1584083994,1584085292 Hm_lpvt_d101ea4d2a5c67dab98251f0b5de24dc 1584086017 delPer 0 PSINO 6 RT "z=1&dm=baidu.com&si=qjcsjud6fxm&ss=k7pvhd03&sl=t&tt=joe&bcn=https%3A%2F%2Ffclog.baidu.com%2Flog%2Fweirwood%3Ftype%3Dperf&ld=fs8e&ul=3jeyx&hd=3jfgv" indexpro kr82hnqeejsakpnpnhccg5tb73 CHKFORREG 01e47e3709a753d6d086950c50a43b31 bdindexid fsdsudrtv7lt0d2qq66bggh9k4 __yjsv5_shitong 1.0_7_ab375f23da0bf914ff3696e54849be0b2fbf_300_1584090757676_112.109.206.112_d120f477 BDRCVFR[feWj1Vr5u3D] I67x6TjHwwYf0 BDUSS nhrZE1XM0dpM01DOTF6N25YYlJaLUlDOEdNZzE4UWF6QzNHUGtuZWlKRFE0WkplSVFBQUFBJCQAAAAAAAAAAAEAAABe43YBcXpseWJnbwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANBUa17QVGteU'; $obj = explode(chr(10), $obj); $cookie = []; foreach ($obj as $value) { $value = explode(' ', $value); $cookie[$value[0]] = $value[1]; } $other = []; $other['cookie'] = $cookie; $back = $H_P->interaction('http://index.baidu.com/api/SearchApi/index?area=0&word=中文&startDate=2020-03-12&endDate=2020-03-13',$other); print_r($back); ~~~