scrapy和selenium結合抓取動態網頁

一、安裝python (我用的是2.7版本的)html

二、安裝scrapy:   詳情請參考 http://blog.csdn.net/wukaibo1986/article/details/8167590 (提示,能下載源碼安裝的就避免用pip install **)java

     安裝過程當中遇到python擴展問題」unable to find vcvarsall.bat「的解決辦法: http://blog.csdn.net/ren911/article/details/6448696python

三、安裝selenium,  https://pypi.python.org/pypi/selenium, 注意安裝後Download the server separately, from:http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.0.jar,  而後運行(命令行運行,須要安裝Java Runtime Environment (JRE))  java -jar selenium-server-standalone-2.42.0.jargit

四、建scrapy工程  , 參考 http://www.searchtb.com/2011/01/an-introduction-to-crawler.html?spm=0.0.0.0.HrlxVlgithub

五、scrapy和selenium結合抓取動態網頁:  https://github.com/tmslav/google_adwords_scrape/blob/master/adwords_bot.pyapi

七、Python Selenium socket error - [Errno 61] Connection refused:  http://stackoverflow.com/questions/12913991/python-selenium-socket-error-errno-61-connection-refusedscrapy

八、Selenium: FirefoxProfile exception Can't load the profile: https://github.com/tmslav/google_adwords_scrape/blob/master/adwords_bot.pysocket

相關文章
相關標籤/搜索