设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

jsoup 1.11.2发布,Java的HTML解析器

2017-11-20 22:24| 发布者: joejoe0332| 查看: 468| 评论: 0|原作者: oschina|来自: oschina

摘要: jsoup 是一款 Java 的HTML 解析器,可直接解析某个URL地址、HTML文本内容。它提供了一套非常省力的API,可通过DOM,CSS以及类似于JQuery的操作方法来取出和操作数据。jsoup的主要功能如下:从一个URL,文件或字符串 ...
jsoup 是一款 Java 的HTML 解析器,可直接解析某个URL地址、HTML文本内容。它提供了一套非常省力的API,可通过DOM,CSS以及类似于JQuery的操作方法来取出和操作数据。

jsoup的主要功能如下:

  1. 从一个URL,文件或字符串中解析HTML;

  2. 使用DOM或CSS选择器来查找、取出数据;

  3. 可操作HTML元素、属性、文本;

jsoup是基于MIT协议发布的,可放心使用于商业项目。

此次更新内容:

改进

  • Added a new pseudo selector :matchText, which allows text nodes to match as if they were elements. This enables finding text that is only marked by a brtag, for example.

  • Change: marked Connection.validateTLSCertificates() as deprecated.

  • Normalize invisible characters (like soft-hyphens) in Element.text().

  • Added Element.wholeText(), to easily get the un-normalized text value of an element and its children.

bug 修复

  • Bugfix: in a deep DOM stack, a StackOverFlow exception could occur when generating implied end tags.

  • Bugfix: when parsing attribute values that happened to cross a buffer boundary, a character was dropped.

  • Bugfix: fixed an issue that prevented using infinite timeouts in Jsoup.Connection.

  • Bugfix: whitespace preserving tags were not honoured when nested deeper than two levels deep.

  • Bugfix: an unterminated comment token at the end of the HTML input would cause an out of bounds exception.

  • Bugfix: an NPE in the Cleaner which would occur if an <a href> attribute value was missing.

  • Bugfix: when serializing the same document in a multiple threads, on Android, with a character set that is not ascii or UTF-8, an encoding exception could occur.

  • Bugfix: removing a form value from the DOM would not remove it from FormData.

  • Bugfix: in the W3CDom transformer, siblings were incorrectly inheriting namespaces defined on previous siblings.

下载地址:


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部