How to retrieve the exact HTML as in a browser

前端 未结 2 620
无人共我
无人共我 2021-01-22 21:24

I\'m using a Python script to render web pages and retrieve their HTML\'s. It works fine with most of the pages, but with some of them the HTML retrieved is incomplete. And I do

2条回答
  •  青春惊慌失措
    2021-01-22 21:58

    I think you can use http://ghost-py.readthedocs.org/en/latest/ for this case. It's loads web page like real browser and run JavaScript. Also you can try PhantomJS for example, but it written on nodeJS.

提交回复
热议问题