在作動態網頁爬蟲時用到了selenium + PhantomJS,安裝好以後運行時報錯:python
E:\Python3\python.exe F:/PyCharmWorkspace/MessageBoom/TestPhantomjs.py E:\Python3\lib\site-packages\selenium\webdriver\phantomjs\webdriver.py:49: UserWarning: Selenium support for PhantomJS has been deprecated, please use headless versions of Chrome or Firefox instead warnings.warn('Selenium support for PhantomJS has been deprecated, please use headless ' Process finished with exit code 0
說是 Selenium 已經棄用 PhantomJS ,請使用火狐或者谷歌無界面瀏覽器。web
查找以後獲得答案時selenium的版本問題,使用pip show selenium顯示默認安裝的是 3.12.0版本網頁爬蟲
· 卸載以後從新pip install selenium==2.48.0安裝成功瀏覽器