HTMLParserHTML文档解析器
HTML Parser 是一个对HTML进行分析的快速实时的解析器,最新的发行版本是1.6,另外2.0的开发版本已经两年没有进展了。
示例代码:
 Parser parser = new Parser ("http://whatever");
 NodeList list = parser.parse (null);
 Node node = list.elementAt (0);
 NodeList sublist = node.getChildren ();
 System.out.println (sublist.size ());
 
Javadoc:http://www.ostools.net/apidocs/apidoc?api=HTMLParser
评论
