内容简介:jsoup 是一款 Java 的HTML 解析器,可直接解析某个URL地址、HTML文本内容。它提供了一套非常省力的API,可通过DOM,CSS以及类似于JQuery的操作方法来取出和操作数据。 jsoup的主要功能如下: 从一个URL,文件或字...
jsoup 是一款 Java 的HTML 解析器,可直接解析某个URL地址、HTML文本内容。它提供了一套非常省力的API,可通过DOM,CSS以及类似于JQuery的操作方法来取出和操作数据。
jsoup的主要功能如下:
从一个URL,文件或字符串中解析HTML;
使用DOM或CSS选择器来查找、取出数据;
可操作HTML元素、属性、文本;
jsoup是基于MIT协议发布的,可放心使用于商业项目。
此次更新内容:
改进
CDATAsections are now treated as whitespace preserving (regardless of the containing element), and are round-tripped into output HTML.Added support for
Deflateencoding.When parsing
<pre>tags, skip the first newline if present.Support nested quotes for attribute selection queries.
Character references from Windows-1252 that are not valid Unicode are mapped to the appropriate Unicode replacement.
Accept a custom SSL socket factory in
Jsoup.Connection. Note thatConnection.validateTLSCertificates()will be removed in the next release;Connection.sslSocketFactory(SSLSocketFactory sslSocketFactory)provides a path to implement a workaround if you need to keep using a similar approach.
Bug 修复
Bugfix: A
Mark has been invalidatedexception was thrown when parsing some URLs on Android <= 6.Bugfix: The
Element.text()for<div>One</div>TwowasOneTwo, notOne Two.Bugfix: boolean attributes with empty string values were not collapsing in HTML output.
Bugfix: when using the XML Parser set to lowercase normalize tags, uppercase closing tags were not correctly handled.
Bugfix: when parsing from a URL, an end tag could be read incorrectly if it started on a buffer boundary.
【声明】文章转载自:开源中国社区 [http://www.oschina.net]
以上所述就是小编给大家介绍的《jsoup 1.11.3 发布,Java 的 HTML 解析器》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- Java HTML 解析器 jsoup 发布 1.13.1,解析速度显著提升
- Expat 2.2.8 发布,XML 解析器
- MediaInfo 20.03 发布,多媒体文件解析软件
- JsoupXPath v2.0-Beta 发布,HTML 解析器
- Kubernetes 1.12全新发布!新功能亮点解析
- MediaInfo 19.07 发布,多媒体文件解析软件
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Perl高效编程
霍尔 / 胜春、王晖、张东亮、蒋永清 / 人民邮电出版社 / 2011-5 / 65.00元
《Perl高效编程(第2版)》,本书是Perl编程领域的“圣经级”著作。它提供了一百多个详实的应用案例,足以涵盖编程过程中经常遇到的方方面面,由此详细阐释出各种高效且简洁的写法。一起来看看 《Perl高效编程》 这本书的介绍吧!