If the number of k is too high when curl or file_get_contents collects URLs

Source: Internet
Author: User
Why cannot I obtain a curl or file_get_contents url when the number of k is too high? Previously, I learned how to obtain the url through bbs. csdn. nettopics390572750, but some links are as follows: www.autohome.com.cn77options.htmlwww.autohome.com. cn59options. why is the k count too high when curl or file_get_con?
Previously, we learned the formula through http://bbs.csdn.net/topics/390572750, but some links are as follows:
Http://www.autohome.com.cn/77/options.html
Http://www.autohome.com.cn/59/options.html
Can be obtained normally
But the following link:
Http://www.autohome.com.cn/146/options.html
Http://www.autohome.com.cn/317/options.html
The result is null. I do not know why. Currently, the number of page K that can be obtained is smaller than the number of pages that cannot be obtained.
Please help me. what is the problem? The younger brother uses lnmp.

Share:


------ Solution --------------------
All in the range of 30 ~ 35 k. it is impossible to obtain the regular expression. it must be a problem with your regular expression.
------ Solution --------------------
Check your regular expression. Is there some situations that cannot be matched. You said you have obtained HTML. The problem is well located.

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.