用Docker安装好splash服务后,在chrome浏览器输入 localhost:8050/ 然后输入www.xiaozhu.com,点render,得到html文件
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate, post-check=0, pre-check=0">
<meta http-equiv="Connection" content="Close">
</head>
<body>
<script src="https://wirelesspub-risk-center.xiaozhu.com/guard/secure.js"></script>
</body></html>
splash不是说可以渲染js的动态网页吗,为什么没有执行secure.js文件渲染页面,而得到这个结果,这里什么都爬不到啊.
我在chrome调试台里看,XHR什么也没有,只有一个doc文件和secure.js文件,我理解是这个doc文件是初始html文件,然后用secure这个js文件渲染页面得到网页源码,拿得到的这个源码再去render一下才能得到完整的浏览器里看到的页面是吗?
搞了好几天了,弄不明白,哪位大侠指教一下,万分感谢!
不知道你这个问题是否已经解决, 如果还没有解决的话: