PHP web crawler

Source: Internet
Author: User
Tags php source code
PHP web crawler Database industry data

Do you have a master who has developed a similar program? I can give you some pointers. Functional requirements are automatically obtained from the site and then stored in the database.


Reply to discussion (solution)

Curl crawls to the target site, the regular or DOM gets the appropriate data, and then saves the database or file.
There is no such thing as too difficult. What you need to consider are:
Crawl strategy (crawl only specific domain names, depth first or breadth first).

Crawl efficiency (multi-threaded to crawl, how to assign the task of each crawler)

And so on .....

Thank you, can you recommend some references ha, I rookie, still need to improve, thank you very much.

Thank you, can you recommend some references ha, I rookie, still need to improve, thank you very much.
Open-source crawlers are many, phpdig, and so on, if not all languages, there are many such as Java version of Nutch (the predecessor of Hadoop). If it's just a simple data extraction, there's a very simple client class, Snoopy

Many!!!! of open source

Want to find PHP source code reference


Thank you, can you recommend some references ha, I rookie, still need to improve, thank you very much.
Open-source crawlers are many, phpdig, and so on, if not all languages, there are many such as Java version of Nutch (the predecessor of Hadoop). If it's just a simple data extraction, there's a very simple client class, Snoopy
Thank you, what I need is to automatically fetch the required data from the website and then deposit it into the database.



Thank you, can you recommend some references ha, I rookie, still need to improve, thank you very much.
Open-source crawlers are many, phpdig, and so on, if not all languages, there are many such as Java version of Nutch (the predecessor of Hadoop). If it's just a simple data extraction, there's a very simple client class, Snoopy
Thank you, what I need is to automatically fetch the required data from the website and then deposit it into the database.
Just crawl some of the site's data, so you don't have to worry too much about efficiency. Direct Curl fetches the target page (if allowed, the simplest file_get_contents), and then the regular expression or DOM gets the data.

It's difficult to write yourself, is there open source? Help to recommend the next OH. Thank you, sir.

For example, I want to automatically crawl the network (without a fixed URL), name "BMW" The price of the car, then save it to a database, and then I'm reading it out. Can you write a simple code example? Thank you, sir.

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