今天在学习android解析HTML,突然找到一个工具Jsoup解析HTML挺好,并且语法像js一样

String htmlString = getHtmlString("http://www.baidu.com");  
Document document = Jsoup.parse(htmlString);  
String title = document.head().getElementsByTag("title").text();  

  Jsoup的官方网站http://jsoup.org/里面解析的很详细

Document doc = Jsoup.parse(new URL("http://www.badidu.com"), 5000);  

相关文章:

  • 2022-01-02
  • 2022-01-14
  • 2021-10-05
  • 2021-06-23
  • 2021-05-27
  • 2021-12-28
  • 2022-02-19
猜你喜欢
  • 2021-05-07
  • 2021-09-05
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
相关资源
相似解决方案