Snoopy 示例代码

include "Snoopy.class.php"; 

 

//$url = 'http://info.eqfc.cn';

$snoopy = new Snoopy; 

$snoopy->fetch($url); //获取所有内容 

//可选以下 

//$snoopy->fetchtext($url); //获取文本内容(去掉html代码) 

//$snoopy->fetchlinks($url); //获取链接 

//$snoopy->fetchform($url); //获取表单 

//$content = $snoopy->results; //显示结果 

echo $content;

你可能感兴趣的:(oop)