且构网

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

美汤找不到标签

更新时间:2023-02-19 11:34:52

BS4 在对 URL 执行 GET 请求后将无法执行网页的 javascript.我认为关注的表是从客户端 javascript 异步加载的.

BS4 won't be able to execute the javascript of a web page after doing the GET request for a URL. I think that the table of concern is loaded async from client-side javascript.

因此,客户端 javascript 需要在抓取 HTML 之前先运行.这个帖子描述了如何做到这一点!

As a result, the client-side javascript will need to run first before scraping the HTML. This post describes how to do so!