博客导读网

一个让你随便看看的地方

简单php爬虫程序

推荐
Linux Pig - 探讨Linux相关技术的博客

<?php $pattenURL = '@http:\/\/[\w|\/|\.]+@'; $resultURL = array(); $visitedURL = array(); function getData($startURL,$level){         global $pattenURL;         global $resultURL;         global $visitedURL;         //if the url is a image, don`t get the content, just Record it in the Result Array         $ptn2 = '@http:\/\/[\w|\/|\.]+[\.gif|\.jpg|\.jpeg|\.png]$@';         if( preg_match($ptn2,$startURL) | empty($startURL) )return;         if(in_array($startURL,$visitedURL)) return;         array_push($visitedURL,$startURL);         [...]
原文地址:http://www.linuxpig.com/2011/11/php-craler/

Linux Pig - 探讨Linux、IOS开发等技术的博客的其他文章
招商银行SWIFT CODE/BIC/BRANCH CODE一览表和其他银行查询方式 [ios开发] ios5 开发出现问题总结
[ios开发]UIButton实现文字竖排显示的一种方法 [ios开发]UILabel加粗字体方法
[ios开发]常用开源资源汇总 [ios开发]创建自己的TreeView 第一部分:创建结点类
[ios开发]创建自己的TreeView 第二部分:实现UITableViewDataSource接口 iPhone-NSAssert使用
通过索引优化含ORDER BY的MySQL语句 自动生成tag程序大收集(auto tag)
更多...

© 2010 博客导读网 BlogABC.NET 本站所有内容皆由网友推荐而来,所有博文的版权归原作者所有,如有冒犯,请邮件告知。uncracker#gmail.com