Optimizing feed link parsing

This commit is contained in:
Shinokuni 2019-02-01 19:20:57 +00:00
parent adbbf2f2bd
commit c5b068be17
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ public final class HtmlParser {
public static List<ParsingResult> getFeedLink(String url) throws Exception { public static List<ParsingResult> getFeedLink(String url) throws Exception {
List<ParsingResult> results = new ArrayList<>(); List<ParsingResult> results = new ArrayList<>();
Document document = Jsoup.connect(url).get(); Document document = Jsoup.parse(getHTMLHeadFromUrl(url));
Elements elements = document.select("link"); Elements elements = document.select("link");