g_data.staticPath = '//qidian.gtimg.com/qd';</script><script data-ignore="true" src="http://qidian.gtimg.com/lbf/1.1.0/LBF.js?max_age=31536000"></script><script>// LBF 配置
LBF.config({"paths":{"site":"http://qidian.gtimg.com/qd/js","qd":"http://qidian.gtimg.com/qd","common":"http://qidian.gtimg.com/common/1.0.0"},"vars":{"theme":"http://qidian.gtimg.com/qd/css"},"combo":true,"debug":false});
LBF.use(['lib.jQuery'], function ($) {
window.$ = $;
});</script><script>LBF.use(['monitor.SpeedReport', 'qd/js/component/login.a4de6.js', 'qd/js/index/index.96e63.js' ], function (SpeedReport, Login, Index) {
// 頁面邏輯入口
if(Login){
Login.init().always(function(){
Index && typeof Index === 'function' && new Index();
})
}
if(219 && 219 != ''){
$(window).on('load.speedReport', function () {
// speedTimer[onload]
speedTimer.push(new Date().getTime());
var f1 = 7718, // china reading limited's ID
f2 = 219, // site ID
f3 = 4; // page ID
// chrome & IE9 Performance API
SpeedReport.reportPerformance({
flag1: f1,
flag2: f2,
flag3IE: f3,
flag3Chrome: f3,
rate:0.1,
url: '//isdspeed.qidian.com/cgi-bin/r.cgi'
});
// common speedTimer:['dom ready', 'onload']
var speedReport = SpeedReport.create({
flag1: f1,
flag2: f2,
flag3: f3,
start: speedZero,
rate:0.1,
url: '//isdspeed.qidian.com/cgi-bin/r.cgi'
});
// chrome & IE9 Performance API range 1~19, common speedTimer use 20+
for (var i = 0; i < speedTimer.length; i++) {
speedReport.add(speedTimer[i], i + 20)
}
// http://isdspeed.qq.com/cgi-bin/r.cgi?flag1=7718&flag2=224&flag3=1&1=38&2=38&…
speedReport.send();
})
}
});
speedTimer.push(new Date().getTime());</script><script>var _mtac = {};
(function() {
var mta = document.createElement("script");
mta.src = "http://pingjs.qq.com/h5/stats.js?v2.0.2";
mta.setAttribute("name", "MTAH5");
mta.setAttribute("sid", "500451537");
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(mta, s);
})();</script></body></html>
UTF-8
-------------------1-------------
-------------------2-------------
Process finished with exit code 0
'https://www.qidian.com/'
返回直接報(bào)錯,debug模式其實(shí)看到數(shù)據(jù)了豹储,只是打印出來就顯示不了撵幽,奇怪同蜻。。懂讯。
with open('qidian.txt','w') as f:
f.write(html)
這樣是可以get到澈缺,為什么打印不出來,why?兜蠕?扰肌?