python爬携程酒店评论_python爬虫爬取携程网的酒店评论数据时,有个请求参数不知道是怎么生成的?...
是下面這個代碼生成的,看不懂:
,_getElevenValue:function(e){
function o(e){
for(var o=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],n="",t=0;e>t;t++){
var i=Math.ceil(25*Math.random());
n+=o[i]
}
return n
}
var n,t=o(7),i=!1;
if(!hotelDomesticConfig.cas.OceanBall)return e.resolve("");
for(;window[t];)
t=o(15);
n=hotelDomesticConfig.cas.OceanBallUrl+"?callback="+t+"&_="+(new Date).getTime()
,window[t]=function(o){
window[t]=void 0;
var n="";
try{n=o()}
catch(a){$.ajax("/domestic/cas/image/bi"
,{method:$.AJAX_METHOD_POST,cache:!1,context:{value:"11-"+encodeURIComponent(a.stack||a)}})
}
finally{i=!0,e.resolve(n)}
}
,$.loader.js(n,{onload:function(){i||(window[t]=void 0,e.reject(""))},onerror:function(o){o&&(window[t]=void 0),e.reject("")}})
}
總結
以上是生活随笔為你收集整理的python爬携程酒店评论_python爬虫爬取携程网的酒店评论数据时,有个请求参数不知道是怎么生成的?...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: angular五大服务顺序,angula
- 下一篇: python 表单中值为空的还需要传入么