PHP class of Snoopy powerful browser method

time:17-06-30 forum:PHP tools and code
  http://www.uedsc.com/snoopy-class-php.html

Snoopy is a powerful analog browser method of PHP classes, often used to collect web page content, is a very powerful category, can Use this kind of simulation browser to complete the task of obtaining web page content and sending form. The following is a detailed introduction to the characteristics of Snoopy.class.php and some common usage.
function feature

Snoopy is a PHP class, which is used to imitate the function of web browser, and it can complete the task of obtaining web page content and sending form. Some functional features of Snoopy:

content fetch ()
to grab web page text content (remove HTML label) fetchtext ()
grab web page, form fetchlinks () fetchform ()
support proxy host
support basic username / password authentication / > support / > support Set user_agent, referer (incoming), cookies and header content (header file)
support browser redirection, and control redirection depth
can extend the link in a web page to high quality URL (default)
submit data and get return value
support tracking HTML framework
support weight. It is OK to pass Cookies

at PHP4 when you are orienting. Since it is a class of PHP without expansion support, the server does not support the best choice for curl.
use the method
1, download the Snoopy class

download address: http://sourceforge.net/projects/snoopy/
2, instantiate object

and then call the corresponding method to get the crawled page information
[code]$snoopy-.gt; fetchlinks ($sourceURL);
$results = $snoopy-.gt; results; [/code]
  • 2
  • 3
  • 4
  • 5
  • 6

prev:Retired teachers and couples make free t... next:Snoopy is used to imitate the function o...
post comment
Notice



approved   "Your advice really can't help me." ...   A rare picture of the old Ji'nan! Th...   The deep mountain women's back husba...   Sichuan Leshan 84 year old Lao Tai a...   Loss of breast and cancer coexistenc...
rand   PHP filter special characters and SQ...   PHP gets all the pictures in the web...   PHP regularly gets the picture and d...   PHP completely filters HTML, JS, CSS...   The UBB label turns the PHP function...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com