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   The most beautiful adoptive mother i...   What's the use and use of the social...   A glimpse of the Intangible Cultural...   The couple made tea by hand in deep ...   What day can "star children" be inte...
rand   Regular regular expressions   PHP code shields China's IP address   PHP error Warning: Cannot modify hea...   PHP does not use the iconv () functi...   PHP does not use iconv () function U...
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