|
我需要爬虫的网站有两秒安全检查,在安全检查的时候返回503不带有cookie <script type="text/javascript"> //<![CDATA[
(function(){
var a = function() {try{return !!window.addEventListener} catch(e) {return !1} },
b = function(b, c) {a() ? document.addEventListener("DOMContentLoaded", b, c) : document.attachEvent("onreadystatechange", b)};
window._cf_chl_opt={
cvId: "1",
cType: "non-interactive",
cNounce: "37226",
cRay: "5c9a84e0cd781087",
cHash: "408de0407545d64",
cRq: {
d: "i+j8bsb1Hy1SSZZ7ThYoWdr1n5esjWXLgGe7NsM+U+i5jFPAfNVvwfbHirY8FT/9ruTFvB3ar9uAXSxe/MOdsAQJuSNZt0jLSelpkzdnozcOkI5pEDd1ZEvIBEokBPN8wuXGrjhCSfBfOHjC6PyDfy0+V55rmG8oqg6Voru+EuCKj2eCNJBkvK3RdG/5HwGgIPNnT8ZZeXMquNDO2Tzpk/RhTler+hCECk7eJbQTfXsERTwPyvhCQB8qCFKUCV7FRdPOnyMqxjNjItyb+GswhE0AMtp7VNPvP+YtsUDORyEPDyACUcu0oDTIm0Kyvc8j6wjc+5xFTLjveLZC9RH6d38j8AlFy5iOd7YojH0o0g2UYd7ztgHpFQcFQu5N3cz4ZWCEBZsY9jcgh/A2PHxEWw==",
t: "MTU5ODU4MDg2OS4yNDIwMDA=",
m: "WbM4dJhW3jpSzHH4RE1wPw5HuYYp7/ZNq8PqATRw7ZI=",
i1: "tUYFwBEXV3h5nPhMGG3UUg==",
i2: "TewgjaIhcM2oLvXWSRi3aA==",
}
}
window._cf_chl_enter = function(){window._cf_chl_opt.p=1};
b(function(){
var cookiesEnabled=(navigator.cookieEnabled)? true : false;
var cookieSupportInfix=cookiesEnabled?'/nocookie':'/cookie';
var a = document.getElementById('yjs-content');a.style.display = 'block';
var isIE = /(MSIE|Trident\/|Edge\/)/i.test(window.navigator.userAgent);
var trkjs = isIE ? new Image() : document.createElement('img');
trkjs.setAttribute("src", "/cdn-cgi/images/trace/baidu-jschal/js"+cookieSupportInfix+"/transparent.gif?ray=5c9a84e0cd781087");
trkjs.id = "trk_jschal_js";
trkjs.setAttribute("alt", "");
document.body.appendChild(trkjs);
document.body.appendChild(trkjs);
var cpo = document.createElement('script');
cpo.type = 'text/javascript';
cpo.src = "/cdn-cgi/challenge-platform/orchestrate/jsch/v1";
var done = false;
cpo.onload = cpo.onreadystatechange = function() {
if (!done && (!this.readyState || this.readyState === "loaded" || this.readyState === "complete")) {
done = true;
cpo.onload = cpo.onreadystatechange = null;
window._cf_chl_enter()
}
};
document.getElementsByTagName('head')[0].appendChild(cpo);
}, false);
})();
//]]>
</script>
<script type="text/javascript" src="https://captcha.su.baidu.com/anti-bot/mfcd.js">
</script>
|
|