摘要:
private static String getHtml(String urlInfo) throws Exception { //读取目的网页URL地址,获取网页源码 URL url = new URL(urlInfo); HttpURLConnection httpUrl = (HttpURL 阅读全文
posted @ 2021-09-04 15:51
show-code
阅读(1128)
评论(0)
推荐(0)
摘要:
1、配置 <dependency> <groupId>org.jsoup</groupId> <artifactId>jsoup</artifactId> <version>1.7.3</version></dependency>2、代码 //网站源码String html = getHtml("w 阅读全文
posted @ 2021-09-04 15:50
show-code
阅读(141)
评论(0)
推荐(0)

浙公网安备 33010602011771号