Jsoup is a Java HTML parser that can directly parse a URL address, HTML text content. It is much more convenient and lighter than the htmlhttp://www.aliyun.com/zixun/aggregation/33959.html ">parser". Syntax is similar to jquery.
It provides a very labor-saving API for fetching and manipulating data through dom,css and jquery-like operations.
This is a minor release, which is primarily corrects a regression bug where the content-type of a document retrieved using Jsoup.connect (String URL) May is correctly detected if specified in a meta tag.
Fixes and improvements
· Fixed issue with selector parser where some boolean and + OR combined queries (E.G.META[HTTP-EQUIV), Meta[content]) were Parsed incorrectly as OR only queries (e.g. former as meta, [HTTP-EQUIV], meta[content])
· Fixed issue where a content-type specified in a META tag is reliably detected, due to the adjective.
· Updated Element.text () and Element.owntext () methods to ensure <br> tags output as whitespace.
· Tweaked element outer HTML method to not generate initial newline on the-i-output element.
Download Address:
Http://jsoup.org/packages/jsoup-1.5.2.jar
Http://jsoup.org/packages/jsoup-1.5.2-sources.jar
Http://jsoup.org/packages/jsoup-1.5.2-javadoc.jar