jsoup v1.5.2發佈 一款JAVA的HTML解析器

來源:互聯網
上載者:User
關鍵字 jsoup java 解析器 一款

jsoup 是一款 JAVA 的HTML 解析器,可直接解析某個URL位址、HTML文本內容。 比起之前用的HTMLHTTP://www.aliyun.com/zixun/aggregation/33959.html">Parser方便很多,而且更輕便。 語法類似jquery。

它提供了一套非常省力的API,可通過DOM,CSS以及類似于JQuery的操作方法來取出和運算元據。

This is a minor release, that primarily corrects a regression bug where the content-type of a document retrieved using Jso up.connect(String url) may not be 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 b eing 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 may not be reliably detected, due to the above issue.
· 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 first output element.

下載位址:

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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.