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/