Screen Scraping a Javascript based webpage in Python

前端 未结 3 821
挽巷
挽巷 2020-12-10 20:15

I am working on a screen scraping tool in Python. But, as I look through the source of the webpage, I noticed that most of the data is coming through Javascript.

An

3条回答
  •  抹茶落季
    2020-12-10 20:40

    I use webkit, which is the browser renderer behind Chrome and Safari. There are Python bindings to webkit through Qt.

    And here is a full Python example to execute JavaScript and extract the final HTML.

提交回复
热议问题