g_data.staticPath = '//qidian.gtimg.com/qd';</script><script data-ignore="true" src="//qidian.gtimg.com/lbf/1.1.0/LBF.js?max_age=31536000"></script><script>// LBF 配置
LBF.config({"paths":{"site":"//qidian.gtimg.com/qd/js","qd":"//qidian.gtimg.com/qd","common":"//qidian.gtimg.com/common/1.0.0"},"vars":{"theme":"//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 = "//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/'
返回直接报错,debug模式其实看到数据了,只是打印出来就显示不了,奇怪。。。
with open('qidian.txt','w') as f:
f.write(html)
这样是可以get到,为什么打印不出来,why???