且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何等待页面加载完成?

更新时间:2022-06-23 22:20:10

我的理解是正确的:不管代码休眠多久还是没有加载鞋码?

As I understand correctly: no matter how long the code sleeps it still hasn't loaded the shoe size?

由于您没有使用无头浏览器,因此您不会在请求的页面上执行 javascript.尝试使用像 PhantomJS 这样的无头浏览器.此处列出了更多无头浏览器.

Since you are not using a headless browser you do not execute javascript on the requested page. Try using a headless browser like PhantomJS. Here a list of more headless browsers.

这里是如何使用 PhantomJS 在 Python 中的一种方法一>.