jsoup API

来源:互联网 发布:苹果微信网络出错1202 编辑:程序博客网 时间:2024/06/05 17:29

转载:
https://www.javatpoint.com/jsoup-api

  1. org.jsoup
  2. org.jsoup.helper
  3. org.jsoup.nodes
  4. org.jsoup.parser
  5. org.jsoup.safety
  6. org.jsoup.select

比较重要的方法

method description static Connection connect(String url) create and returns connection of URL. static Document parse(File in, String charsetName) parses the specified charset file into document. static Document parse(File in, String charsetName, String baseUri) parses the specified charset and baseUri file into document. static Document parse(String html) parses the given html code into document. static Document parse(String html, String baseUri) parses the given html code with baseUri into document. static Document parse(URL url, int timeoutMillis) parses the given URL into document. static String clean(String bodyHtml, Whitelist whitelist) returns safe HTML from input HTML, by parsing input HTML and filtering it through a white-list of permitted tags and attributes.
原创粉丝点击