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.