![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
html
文章平均质量分 62
无限寂寞
这个作者很懒,什么都没留下…
展开
-
htmlCleaner 结合xpath转为html为xml并读取
import java.io.IOException; import java.net.URL; import org.htmlcleaner.CleanerProperties; import org.htmlcleaner.HtmlCleaner; import org.htmlcleaner.PrettyXmlSerializer; import org.htmlclea转载 2012-02-21 16:01:43 · 1657 阅读 · 1 评论 -
读取网页源码
import java.io.BufferedReader;import java.io.InputStreamReader;import java.net.URL;public class Res { public Res() { } public void getResCode() { try { URL url = new URL("http://www.baidu转载 2012-02-21 15:31:25 · 354 阅读 · 0 评论