PHP采集库-Snoopy.class.php

//加载类库文件include(“snoopy.php”);

//要采集的页面地址

$url = “http://www.www.shlongyingjixie.com”;

$snoopy = new Snoopy;

//去抓取页面

$snoopy->fetch($url);

//输出抓回页面的html

echo $snoopy->results;

PHP采集库-Snoopy.class.php



你可能感兴趣的:(PHP采集库-Snoopy.class.php)