Scraping websites with Javascript enabled?

前端 未结 6 592
北海茫月
北海茫月 2020-12-08 05:28

I\'m trying to scrape and submit information to websites that heavily rely on Javascript to do most of its actions. The website won\'t even work when i disable Javascript in

6条回答
  •  佛祖请我去吃肉
    2020-12-08 06:12

    I've had exactly the same problem. It is not simple at all, but I finally found a great solution, using PyQt4.QtWebKit.

    You will find the explanations on this webpage : http://blog.motane.lu/2009/07/07/downloading-a-pages-content-with-python-and-webkit/

    I've tested it, I currently use it, and that's great !

    Its great advantage is that it can run on a server, only using X, without a graphic environment.

提交回复
热议问题