PHP deep scan: when I want to capture the content on the webpage, I can enter the file_get_contents parameter in the url to get the current content. how can I deeply capture the content? Is it because the url is obtained after the tag and then file_get_contents keeps traversing like this ?? I don't know if I have any good ideas ?, Crawler? Almost two common traversal modes: 1. deep scanning, similar to PHP deep scanning
When I want to capture the content on the webpage
Enter the file_get_contents parameter in the url to obtain the current content.
What I want to do now is how to capture deeply?
Is it because the url is obtained after the tag and then file_get_contents
Does the traversal continue like this ??
I don't know if I have any good ideas?
------ Solution --------------------
Crawler?
There are two common traversal forms:
1. deep scanning, similar to the depth traversal of an image. Recursion is the easiest way to understand.
2. wide scan. Scan the webpage in a hierarchical manner. It is easy to implement and can control the captured layers.
Basically, you are talking about the method of in-depth crawling. Ps: This is quite time-consuming.
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