Since CasperJS can be instaled easily by
npm, it is recomended to use in sever side.
Installation command for CasperJS is as follows:
The following code is a a script to scrape web page by using CasperJS.
In this case, I tried to be able to scpecify URL to scrape and a destination to save scraped HTML.
After that, if you run the command below, HTML of your target URL will be saved.
- scrape_5374/capture-5374.js at master · PharaohKJ/scrape_5374
- Using the command line — CasperJS 1.1.0-DEV documentation