PHP collection class (Snoopy. class. php) helps you get twice the result with half the effort (with Snoopy. class. php download and usage tutorials)

Source: Internet
Author: User
Tags php download
First, we will introduce Snoopy. class. php functions are used to simulate browser functions. they can obtain webpage content, webpage links, and send forms. they can be used to quickly develop collection programs and thieves. Case 1: Get the webpage content, plain text content, and webpage link, first introduce Snoopy. class. php functions are used to simulate browser functions. they can obtain webpage content, webpage links, and send forms. they can be used to quickly develop collection programs and thieves.
Case 1: obtain webpage content, plain text content, webpage link, and webpage form

 Fetch ($ url); // Get the plain text content of the webpage $ snoopy-> fetchtext ($ url); // get all links of the webpage $ snoopy-> fetchlinks ($ url ); // Obtain the webpage form $ snoopy-> fetchform ($ url); // Print and view print_r ($ snoopy-> results );

Case 2: simulate logon, which is simple...

 Submit ($ submit_url, $ submit_vars); // print the logon result $ snoopy-> results;

Provide the latest version of Snoopy. class. php Download: Snoopy-1.2.4.zip
Http://sourceforge.net/projects/snoopy/

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.