How can I obtain the javascript-php crawler ajax request address?

Source: Internet
Author: User
A web page is crawled by a php crawler. The information on the Web page is displayed on the page only after logon. It is the information of an ajax request. Press F12 to find the ajax request address, which is generated by javascript. How can I get this address? Added: jquery code for ajax requests: {code ...} press F... A web page is crawled by a php crawler. The information on the Web page is displayed on the page only after logon. It is the information of an ajax request. Press F12 to find the ajax request address, which is generated by javascript. How can I get this address?

Supplement:
Jquery code for ajax requests:

$(document).ready(function(){    var id="100";    var tsTimeStamp= new Date().getTime();    $.get("http://www.xxxx.com/extra/ajax_contact.php", { "id": id,"time":tsTimeStamp,"act":"locations_contact"},        function (data,textStatus)         {                        $("#locations_contact").html(data);         }    );})

Press F12 to display the ajax request address in that box: ajax_contact.php? Id = 100 & time = 1442484035051 & act = locations_contact
Open the full address shown above in a new window: http://www.xxxx.com/extra/ajax_contact.php? Id = 100 & time = 1442484035051 & act = locations_contact

How can I obtain this address for different page IDs?

Reply content:

A web page is crawled by a php crawler. The information on the Web page is displayed on the page only after logon. It is the information of an ajax request. Press F12 to find the ajax request address, which is generated by javascript. How can I get this address?

Supplement:
Jquery code for ajax requests:

$(document).ready(function(){    var id="100";    var tsTimeStamp= new Date().getTime();    $.get("http://www.xxxx.com/extra/ajax_contact.php", { "id": id,"time":tsTimeStamp,"act":"locations_contact"},        function (data,textStatus)         {                        $("#locations_contact").html(data);         }    );})

Press F12 to display the ajax request address in that box: ajax_contact.php? Id = 100 & time = 1442484035051 & act = locations_contact
Open the full address shown above in a new window: http://www.xxxx.com/extra/ajax_contact.php? Id = 100 & time = 1442484035051 & act = locations_contact

How can I obtain this address for different page IDs?

Analyze js, find out how js works together with this address, which variables are used, where the value of this variable comes from, and then assemble it by yourself.


  

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.