web scraping - How to change PhantomJS version -
i learning phantomjs scraping. started incorporate casperjs. when run casperjs , filename back
casperjs needs phantomjs v1.x how change phantomjs version use casperjs? there easier way scrape website heavy javascript?
i used cheerio , require static html.
this message shown if try use phantomjs 2.x casperjs version <= 1.1-beta.
use different phantomjs once
if have phantomjs 1.x on system, can change executable in command prompt.
cmd.exe:
c:\path> set phantomjs_executable=c:\path\to\phantomjs198.exe c:\path> casperjs script.js terminal:
$ export phantomjs_executable=/path/to/phantomjs198 $ casperjs script.js you can use "phantomjs198" instead of "/path/to/phantomjs198" if in path.
update casperjs
the other way use casperjs master branch on github (docs). works rather in experience , supports phantomjs 2.x (and phantomjs 1.x).
Comments
Post a Comment