Commit db2bf986 authored by alex yao's avatar alex yao

fix:修复网页读取插件

parent d80d158b
......@@ -124,7 +124,7 @@ public class DocumentLoad {
public static String loadHtml(String url) {
try {
Element body = Jsoup.connect("https://juejin.cn/post/7115639885457063966")
Element body = Jsoup.connect(url)
.timeout(10 * 1000).get().body();
return body.text();
} catch (IOException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment