HTML解析实用库,非常好用 public class HtmlLinkParser { //获取子链接,url为网页url,filter是链接过滤器,返回该页面子链接的HashSet public static Set extracLinks(String url, LinkFilter filter) { Set links = new HashSet (); try { Parser parser = new Parser(url);