url="http://so.eastmoney.com/web/s?keyword=002697&pageindex=1"
app=QApplication([])
webview=QWebView()
loop=QEventLoop()
webview.loadFinished.connect(loop.quit)
webview.load(QUrl(url))
loop.exec_()
html=webview.page().mainFrame().toHtml()
with open("test.txt","w") as f:
f.write(html)
我想获取这个页面的jss内容,但是我下载下来的内容仍然不包括jss的内容,也就是span中没有内容
![图片说明](https://img-ask.csdn.net/upload/201910/21/1571626245_843423.png)
但是我在网页上点击检查得到的确实时有内容的:
![图片说明](https://img-ask.csdn.net/upload/201910/21/1571626304_661667.png)
求解