首页  软件  游戏  图书  电影  电视剧

请输入您要查询的软件:

 

软件 jsoup Java HTML解析器 v1.12.1 最新免费版 
内容

jsoup 1.12.1 发布了,该版本包含众多可用性的提升,提升了解析速度和内存效率,修复了不少 bug 。

jsoup 是一款 Java 的HTML 解析器,可直接解析某个URL地址、HTML文本内容。它提供了一套非常省力的API,可通过DOM,CSS以及类似于JQuery的操作方法来取出和操作数据。

jsoup主要功能如下:

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

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

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

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

示例代码:

完整的改进记录如下:

Changes
Change: removed deprecated method to disable TLS cert checking in Connection.validateTLSCertificates().
Change: some internal methods have been rearranged; if you extended any of the Jsoup internals you may need to make updates.
Updated jetty-server (which is used for integration tests) to latest 9.2 series (9.2.28).
Improvements
Improvement: documents now remember their parser, so when later manipulating them, the correct HTML or XML tree builder is reused, as are the parser settings like case preservation.
Improvement: Jsoup now detects the character set of the input if specified in an XML Declaration, when using the HTML parser. Previously that only happened when the XML parser was specified.
Improvement: if the document's input character set does not support encoding, flip it to one that does.
Improvement: if a start tag is missing a > and a new tag is seen with a <, treat that as a new tag. (This differs from the HTML5 spec, which would make at attribute with a name beginning with <, but in practice this impacts too many pages.
Improvement: performance tweaks when parsing start tags, data, tables.
Improvement: added Element.nextElementSiblings() and Element.previousElementSiblings()
Improvement: treat center tags as block tags.
Improvement: allow forms to be submitted with Content-Type=multipart/form-data without requiring a file upload; automatically set the mime boundary.
Improvement: Jsoup will now detect if an input file or URL is binary, and will refuse to attempt to parse it, with an IO Exception. This prevents runaway processing time and wasted effort creating meaningless parsed DOM trees.
Bug Fixes
Bugfix: when using the tag case preserving parsing settings, certain HTML tree building rules where not followed for upper case tags.
Bugfix: when converting a Jsoup document to a W3C DOM, if an element is namespaced but not in a defined namespace, set it to the global namespace.
Bugfix: attributes created with the Attribute constructor with just spaces for names would incorrectly pass validation.
Bugfix: some pseudo XML Declarations were incorrectly handled when using the XML Parser, leading to an IOOB exception when parsing.
Bugfix: when parsing URL parameter names in an attribute that is not correctly HTML encoded, and near the end of the current buffer, those parameters may be incorrectly dropped. (Improved CharacterReader mark/reset support.)
Bugfix: boolean attribute values would be returned as null, vs an empty string, when accessed via the Attribute#getValue() method.
Bugix: orphan Attribute objects (i.e. created outside of a parse or an Element) would throw an NPE on Attribute#setValue(val)
Bugfix: Element.shallowClone() was not making a clone of its attributes.
Bugfix: fixed an ArrayIndexOutOfBoundsException in HttpConnection.looksLikeUtf8() when testing small strings in specific character ranges.

标签 jsoup,Java,HTML解析器
缩略图
软件名称 jsoup Java HTML解析器 v1.12.1 最新免费版
软件图标
软件大小 1.70MB
发布时间
软件平台
软件语言 英文软件
软件授权 免费软件
操作系统 Windows平台
系统类型
用户评分 3
软件版本
官方网站
官方网址
软件截图
软件总类 电脑游戏
软件大类 软件下载-应用软件-编程开发-java相关-jsoup解析下载
软件小类 java相关
开发者
主办单位名称
ICP备案名
备案号
使用年龄
下载链接
攻略教程
详细介绍
操控设备
隐私政策
查看权限
敏感权限获取说明
软件类型 国外软件
安全警示 适度休息有益身心健康,请勿长期沉迷于使用电脑或刷手机。
随便看

 

传承兰台文化,共同保存历史记忆!兰台网收藏软件、游戏、图片、图书、电影、电视剧等互联网档案,是免费和可借阅文本、电影、音乐等档案的数字图书馆。

 

Copyright © 2004-2025 xlantai.com All Rights Reserved
更新时间:2025/5/9 7:25:46