Considering PhantomJS found at /usr/bin/phantomjs
Looks like an `npm install -g` Error checking path, continuing { Error: Cannot find module ‘/usr/lib/node_modules/phantomjs/lib/location’
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at getLocationInLibModuleIfMatching (/usr/lib/node_modules/phantomjs/install.js:332:19)
at Promise._successFn (/usr/lib/node_modules/phantomjs/install.js:389:28)
at nextTickCallback (/usr/lib/node_modules/phantomjs/node_modules/kew/kew.js:47:28)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9) code: ‘MODULE_NOT_FOUND’ }
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1//phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /usr/lib/node_modules/phantomjs/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving…
[======================================–] 94%
Received 22866K total.
Extracting tar contents (via spawned process)
Removing /usr/lib/node_modules/phantomjs/lib/phantom
Copying extracted folder /usr/lib/node_modules/phantomjs/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2-extract-1511189541076/phantomjs-2.1.1-linux-x86_64 -> /usr/lib/node_modules/phantomjs/lib/phantom
Writing location.js file Done. Phantomjs binary available at /usr/lib/node_modules/phantomjs/lib/phantom/bin/phantomjs
/usr/lib mqw phantomjs@2.1.7
tqw extract-zip@1.5.0
x tqw concat-stream@1.5.0
x x tqq inherits@2.0.3
x x tqw readable-stream@2.0.6
x x x tqq core-util-is@1.0.2
x x x tqq isarray@1.0.0
x x x tqq process-nextick-args@1.0.7
x x x tqq string_decoder@0.10.31
x x x mqq util-deprecate@1.0.2
x x mqq typedarray@0.0.6
x tqq debug@0.7.4
x tqw mkdirp@0.5.0
x x mqq minimist@0.0.8
x mqw yauzl@2.4.1
x mqw fd-slicer@1.0.1
x mqq pend@1.2.0
tqw fs-extra@0.26.7
x tqq graceful-fs@4.1.11
x tqq jsonfile@2.4.0
x tqq klaw@1.3.1
x tqq path-is-absolute@1.0.1
x mqw rimraf@2.6.2
x mqw glob@7.1.2
x tqq fs.realpath@1.0.0
x tqw inflight@1.0.6
x x mqq wrappy@1.0.2
x tqw minimatch@3.0.4
x x mqw brace-expansion@1.1.8
x x tqq balanced-match@1.0.0
x x mqq concat-map@0.0.1
x mqq once@1.4.0
tqw hasha@2.2.0
x tqq is-stream@1.1.0
x mqw pinkie-promise@2.0.1
x mqq pinkie@2.0.4
tqq kew@0.7.0
tqq progress@1.1.8
tqw request@2.67.0
x tqq aws-sign2@0.6.0
x tqq bl@1.0.3
x tqq caseless@0.11.0
x tqw combined-stream@1.0.5
x x mqq delayed-stream@1.0.0
x tqq extend@3.0.1
x tqq forever-agent@0.6.1
x tqw form-data@1.0.1
x x mqw async@2.6.0
x x mqq lodash@4.17.4
x tqw har-validator@2.0.6
x x tqw chalk@1.1.3
x x x tqq ansi-styles@2.2.1
x x x tqq escape-string-regexp@1.0.5
x x x tqw has-ansi@2.0.0
x x x x mqq ansi-regex@2.1.1
x x x tqq strip-ansi@3.0.1
x x x mqq supports-color@2.0.0
x x tqq commander@2.11.0
x x mqw is-my-json-valid@2.16.1
x x tqq generate-function@2.0.0
x x tqw generate-object-property@1.2.0
x x x mqq is-property@1.0.2
x x tqq jsonpointer@4.0.1
x x mqq xtend@4.0.1
x tqw hawk@3.1.3
x x tqq boom@2.10.1
x x tqq cryptiles@2.0.5
x x tqq hoek@2.16.3
x x mqq sntp@1.0.9
x tqw http-signature@1.1.1
x x tqq assert-plus@0.2.0
x x tqw jsprim@1.4.1
x x x tqq assert-plus@1.0.0
x x x tqq extsprintf@1.3.0
x x x tqq json-schema@0.2.3
x x x mqw verror@1.10.0
x x x mqq assert-plus@1.0.0
x x mqw sshpk@1.13.1
x x tqq asn1@0.2.3
x x tqq assert-plus@1.0.0
x x tqq bcrypt-pbkdf@1.0.1
x x tqw dashdash@1.14.1
x x x mqq assert-plus@1.0.0
x x tqq ecc-jsbn@0.1.1
x x tqw getpass@0.1.7
x x x mqq assert-plus@1.0.0
x x tqq jsbn@0.1.1
x x mqq tweetnacl@0.14.5
x tqq is-typedarray@1.0.0
x tqq isstream@0.1.2
x tqq json-stringify-safe@5.0.1
x tqw mime-types@2.1.17
x x mqq mime-db@1.30.0
x tqq node-uuid@1.4.8
x tqq oauth-sign@0.8.2
x tqq qs@5.2.1
x tqq stringstream@0.0.5
x tqq tough-cookie@2.2.2
x mqq tunnel-agent@0.4.3
tqw request-progress@2.0.1
x mqq throttleit@1.0.0
mqw which@1.2.14
mqq isexe@2.0.0
(pyenv) [test@SAKURA_VPS scraping]$ python test_selenium.py Here is some important text you want to retrieve! A button to click!
(pyenv) [test@SAKURA_VPS scraping]$
コメント