LoginSignup
3
2

More than 5 years have passed since last update.

phantomjsをpythonから利用するにあたっての注意点

Posted at

Mac portsを使って、インストールする手順は、

port install phantomjs
port install py27-selenium

となります。(sudoで実行してね)

しかし、これだと、

from selenium.webdriver import phantomjs

で呼び出せない。seleniumのwebdriverがphantomjsを見つけられないようだ。

ただし、seleniumのインストールをpipにまかせる必要がある。

pip install selenium

何なんだろうこのトラップ。。。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2