Using CasperJS to scrape website data

CasperJS can be used for Navigation Scipting, Scraping and testing. In this Tutorial we will see how to scrape data using CasperJS. To run casperJS you will need a Headless browser like PhantomJS or SlimerJS.Latest versions of casperJS need PhantomJS 1.9+

Installing PhantomJS:

Installing CasperJS:

Simple JS Script to Login and print page title:

This script will login into website and print page Title. In this script we performed both Navigation and Scraping.

The article was originally published at MicroPyramid blog

Python, Django, Android and IOS, reactjs, react-native, AWS, Salesforce consulting & development company