首页 > 编程语言 > 详细

python爬虫使用Selenium的准备工作之二:

时间:2017-10-09 21:42:08      阅读:272      评论:0      收藏:0      [点我收藏+]

之一就是Selenium的安装啦。

pip install 即可。

这里的之二是打开火狐:

driver = webdriver.Firefox(executable_path=‘/usr/lib/firefox/firefox‘)

executable_path是firefox的安装路径

可是我忘记了肿么破?

委屈。

 ps -ef|grep firefox

 

b2utyyo+  9824  9031 21 18:42 ?        00:22:44 /usr/lib/firefox/firefox http://www.ubuntukylin.com/ukylin/member.php?mod=register
b2utyyo+  9868  9031  0 18:42 ?        00:00:02 /usr/lib/firefox/firefox
hadoop   11322  1439  1 18:47 ?        00:01:13 /usr/lib/firefox/firefox
root     16251 14884  0 20:30 pts/20   00:00:00 grep --color=auto firefox

可以知道就是/usr/lib/firefox/firefox了

OK

火狐打开了

python爬虫使用Selenium的准备工作之二:

原文:http://www.cnblogs.com/AbsolutelyPerfect/p/7642941.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!