Depending upon your Python (v. 3) installation, the module dependencies are `numpy`, `requests`, `selenium`, and `Faker`, as well as `phantomjs`. How you install these depends upon your OS.
132
+
Depending upon your Python (v. 3) installation, the module dependencies are `numpy`, `requests`, `selenium`, and `fake_useragent`, as well as `chromedriver`. How you install these depends upon your OS.
133
133
134
134
This involves choosing a Python (v. 3) package manager, typically `pip` or `Anaconda`.
It is recommended that the `phantomjs` binary be installed directly from [phantomjs.org](http://phantomjs.org/download.html). Be sure to verify the [checksum](http://phantomjs.org/download.html#checksums) of the downloaded installation.
144
+
It is recommended that the `chromedriver` binary be installed directly from [chromedriver.chromium.org](http://chromedriver.chromium.org/downloads. Be sure to verify the [Etag](https://chromedriver.storage.googleapis.com/index.html?path=2.42/) of the downloaded installation.
145
145
146
146
## macOS
147
147
148
148
The [MacPorts](https://www.macports.org) install command is:
149
149
150
150
```
151
-
sudo port install py34-numpy py34-requests py34-psutil py34-opensslphantomjs psutil
151
+
sudo port install chromedriverpy36-numpy py36-requests py36-psutil py36-openssl psutil
152
152
```
153
153
154
154
This is what was also necessary on macOS:
155
155
156
156
```
157
-
sudo port install phantomjs
158
-
sudo -H pip-3.4 install selenium
157
+
sudo port install chromedriver
158
+
sudo -H pip-3.6 install seleniumfake_useragent
159
159
160
-
# if phantonjs fails to build because of an Xode configuration error: test with
160
+
# if chromedriver fails to install because of an Xode configuration error: test with
161
161
/usr/bin/xcrun -find xcrun
162
162
# then do this:
163
163
cd /Applications/Xcode.app/Contents/Developer/usr/bin/
`phantomjs` requires some graphical software, virtual or otherwise, so on a headless computer, you'll need the following system package and local package.
215
+
`chromedriver` requires some graphical software, virtual or otherwise, so on a headless computer, you'll need the following system package and local package.
215
216
216
217
If you're not using virtualenv (below) then run pip as sudo.