PHANTOMJS, CASPERJS installation configuration graphic detailed

Source: Internet
Author: User

Current website Mainstream loading mode:

One is synchronous loading, the other is asynchronous loading, which is what we often say with Ajax. For Web sites that are loaded synchronously, the normal crawler can easily be done. But for a Web site that asynchronously requests data, it is usually done using the selenium+phantomjs combination.

(1) Selenium: is a Web Automation testing tool, originally developed for Web site automation testing, it can be used to manipulate the browser and the elements of the Web page. Selenium supports most browsers, similar to phantomjs browser with no interface

(2) Phantomjs: is a webkit -based no interface browser, in addition to no interface, and other functions as normal browser. Because there is no interface, so the efficiency is higher than the average browser

(3) Casperjs is an open source navigation script processing and testing tool, written based on the Phantomjs(front end Automated test tool). Casperjs simplifies the process definition of a complete navigation scene and provides useful advanced functions, methods, and syntax for accomplishing common tasks

1. Download:

(1) Phantomjs:http://phantomjs.org/download.html

(2) Casperjs:http://casperjs.org/

2. Install (unzip, configure environment variables):

Decompression is needless to say, all know that after extracting the bin directory to add to the environment variable path, I use WIN10, such as:

3. Verify that the configuration is successful:

CMD to execute the command:

Phantomjs--version

Casperjs--version

Such as:

PHANTOMJS, CASPERJS installation configuration graphic detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.