How do web crawlers Capture web Ajax pages?

Source: Internet
Author: User

Ajax, that is, asychronous JavaScript and XML. Due to the JavaScript-driven asynchronous request/response mechanism, crawlers in the past lack the semantic understanding of JavaScript, basically, it is impossible to trigger JavaScript asynchronous calls and parse the returned asynchronous callback logic and content.

In addition, in Ajax applications, JavaScript changes the DOM structure significantly, and even all the content on the page is read directly from the server and dynamically drawn through JavaScript. this is simply incomprehensible for static pages that "Get used to" the DOM structure remains unchanged.

From this we can see that previous crawlers were protocol-driven. For Ajax technologies, the "crawler" engine must be event-driven. To implement event-driven, we must first solve the following problems:

● Interactive Analysis and Interpretation of JavaScript

● Distribution of DOM event processing and interpretation

● Extraction of dynamic Dom content Semantics

As for how to implement it, I personally think that the paper crawling Ajax-Driven Web 2.0 applications is of great reference value. You can study it if you are interested.

Related Article

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.