Crawler是一个简单的Web爬虫。它让你不用编写枯燥,容易出错的代码,而只专注于所需要抓取网站的结构。此外它还非常易于使用。 <DIV class=java><CODE class=java><FONT face=NSimsun><SPAN class=java10>CrawlerConfiguration cfg = </SPAN><SPAN class=java4>new </SPAN><SPAN class=java10>CrawlerConfiguration</SPAN><SPAN class=java8>(</SPAN><SPAN class=java5>"http://www.open-open.com"</SPAN><SPAN class=java8>)</SPAN></FONT><FONT face=NSimsun><SPAN class=java10>;
PageCrawler crawler = </SPAN><SPAN class=java4>new </SPAN><SPAN class=java10>PageCrawler</SPAN><SPAN class=java8>(</SPAN><SPAN class=java10>cfg</SPAN><SPAN class=java8>)</SPAN></FONT><FONT face=NSimsun><SPAN class=java10>;
crawler.crawl</SPAN><SPAN class=java8>(</SPAN><SPAN class=java4>new </SPAN><SPAN class=java10>YourPageVisitor</SPAN><SPAN class=java8>())</SPAN><SPAN class=java10>;
</SPAN></FONT></CODE>
<DIV class=date>收录时间:2011-03-05 09:41:09</DIV></DIV>