- Hello world
- User agent
- Screen capture
- Crawling data from website
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
$ cd learning-phantomjs
$ phantomjs 01-hello-world.js