警告是:2012-2-16 18:17:04 org.apache.commons.httpclient.HttpMethodBase getResponseBody
警告: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Parser cannot be resolved to a type
Parser cannot be resolved to a type
NodeFilter cannot be resolved to a type
NodeFilter cannot be resolved to a type
Node cannot be resolved to a type
OrFilter cannot be resolved to a type
OrFilter cannot be resolved to a type
NodeClassFilter cannot be resolved to a type
LinkTag cannot be resolved to a type
NodeList cannot be resolved to a type
Node cannot be resolved to a type
LinkTag cannot be resolved to a type
LinkTag cannot be resolved to a type
LinkTag cannot be resolved to a type
ParserException cannot be resolved to a type at HtmlParserTool.extracLinks(HtmlParserTool.java:21)
at MyCrawler.crawling(MyCrawler.java:47)
at MyCrawler.main(MyCrawler.java:59)用到了httmclient和 httpparser两个开源包
这问题这么解决?
源码在这里:http://blog.csdn.net/chago_/article/details/7265664
警告: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Parser cannot be resolved to a type
Parser cannot be resolved to a type
NodeFilter cannot be resolved to a type
NodeFilter cannot be resolved to a type
Node cannot be resolved to a type
OrFilter cannot be resolved to a type
OrFilter cannot be resolved to a type
NodeClassFilter cannot be resolved to a type
LinkTag cannot be resolved to a type
NodeList cannot be resolved to a type
Node cannot be resolved to a type
LinkTag cannot be resolved to a type
LinkTag cannot be resolved to a type
LinkTag cannot be resolved to a type
ParserException cannot be resolved to a type at HtmlParserTool.extracLinks(HtmlParserTool.java:21)
at MyCrawler.crawling(MyCrawler.java:47)
at MyCrawler.main(MyCrawler.java:59)用到了httmclient和 httpparser两个开源包
这问题这么解决?
源码在这里:http://blog.csdn.net/chago_/article/details/7265664
不过最主要是查明为什么有那么多类型不能识别
at MyCrawler.crawling(MyCrawler.java:47)
使用 HttpClient 和 HtmlParser 实现简易爬虫