Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 605 Bytes

File metadata and controls

24 lines (20 loc) · 605 Bytes

Some basic sample using PhantomJS

List project

  • Hello world
  • User agent
  • Screen capture
  • Crawling data from website

How to use

First of all, please install PhantomJS on your device. To install PhantomJS, head over to the (official website)[http://phantomjs.org/download.html] and download the binary suitable for your device. Make sure copy binary suitable phantomjs to /usr/bin or /usr/local/bin

Or if you was installed npm on your device, you can type:

$ sudo npm install phantomjs -g

How to execute code

$ cd learning-phantomjs
$ phantomjs 01-hello-world.js