javascript-php Crawl page When encountered JS timed jump

Source: Internet
Author: User
Crawl to the page content is


  
   
  
   
  
   
  
   

The crawl program gets a status code of 200
Crawl the browser link with fiddler to discover that the status code is 302
The header has location:/(E24a2c455vo1xe45nlqfme55)/default2.aspx

Is it because Curl crawled to the JS page because it was timed 700 milliseconds to jump so curl thought no jump stopped? How does this work? Do you match it with regular?

Reply content:

Crawl to the page content is


  
   
  
   
  
   
  
   

The crawl program gets a status code of 200
Crawl the browser link with fiddler to discover that the status code is 302
The header has location:/(E24a2c455vo1xe45nlqfme55)/default2.aspx

Is it because Curl crawled to the JS page because it was timed 700 milliseconds to jump so curl thought no jump stopped? How does this work? Do you match it with regular?

In 2 steps, the first step to catch you this page, extract JS link. The second step is to grab the link corresponding page in JS.
You may want to be aware of synchronizing cookies on multiple pages. You can check the manual Curl Cookiejar cookiefile in detail.

Because the crawler is not a browser and does not execute code within the script

  • 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.