版权声明:本文为博主原创文章,转载时请注明出处。--如需支持,请联系QQ:342930411填写付费技术支持 https://blog.csdn.net/php521php/article/details/85331767
执行如下程序
c:\Python37\python.exe d:/Py/crawler/Phantomjs.py
报错:
c:\Python37\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 '
pip show selenium
Process finished with exit code 0
分析原因:selenium放弃对新版本phantomjs的支持了
因为https://github.com/ariya/phantomjs已经进入维护状态了
如果想继续使用该功能
先执行删除新版本
pip uninstall selenium
再安装指定版本
pip install selenium==2.48.0