设为首页 收藏本站
查看: 981|回复: 0

[软件发布] jsoup 1.8.2 发布,HTML 解析器

[复制链接]

尚未签到

发表于 2015-5-7 12:51:37 | 显示全部楼层 |阅读模式
5月23日 西安 OSC 源创会开始报名啦,存储、虚拟机、Docker 等干货分享
  jsoup 1.8.2 发布,此版本提升了 Android,HTML 解析,HTML 生成,查询等方面的性能。同时添加了文件上传,W3C DOM 互操作等功能,还有其他的改进和 bug 修复。
更新内容  

  改进
  

  •   提升 Android 解析 HTML 的性能
      
  •   提升 Android HTML 序列化的性能
      
  •   加快 Andorid 上字符集编码速度
      
  •   提升 Andorid 上 selector 类的性能
      
  •   支持文件上传
      
  •   Add a meta-charset element to documents when setting the character set
      
  •   Added ability to disable TLS (SSL) certificate validation
      
  •   Added ability to further tweak the canned Cleaner Whitelists by removing existing settings.
      
  •   Added option in Cleaner Whitelist to allow linking to in-page anchors (#)
      
  •   Use a lowercase doctype tag for HTML5 documents.
      
  •   Add support for 201 Created with redirect, and other status codes
      
  •   Added support for HTTP method verbs PUT, DELETE, and PATCH.
      
  •   Added support for overriding the default POST character of UTF-8 in Connection.
      
  •   W3C DOM support: added ability to convert from a jsoup document to a W3C document
      
  •   In the HtmlToPlainText example program, added the ability to filter using a CSS selector
      
  •   Improved the equals() and hashcode() methods in Node
      
  •   Improved performance in Selector when searching multiple roots.
      
  Bug 修复
  

  •   Fixed validation of cookie names in HttpConnection cookie methods.
      
  •   Fixed an issue where option tags would be missed when preparing a form for submission if missing a selected attribute.
      
  •   Fixed an issue where submitting a form would incorrectly include radio and checkbox values without the checked attribute.
      

  •   Fixed an issue where Element.classNames() would return a set containing an empty>  
  •   Fixed an issue where attributes selected by value were not correctly space normalized.
      In head+noscript elements, treat content as character data, instead of jumping out of head parsing.
      
  •   Fixed performance issue when parsing HTML with elements with many children that need re-parenting.
      
  •   Fixed an issue where a server returning an unsupport character set response would cause a runtime
      
  •   UnsupportedCharsetException, instead of falling back to the default UTF-8 charset.
      
  •   Fixed an issue where Jsoup.Connection would throw an IO Exception when reading a page with zero content-length.
  更多内容请看发行说明。
  
  OSChina 使用 jsoup 来解析 HTML。
  jsoup 是一款 Java 的HTML 解析器,可直接解析某个URL地址、HTML文本内容。它提供了一套非常省力的API,可通过DOM,CSS以及类似于JQuery的操作方法来取出和操作数据。
  jsoup的主要功能如下:

  •   从一个URL,文件或字符串中解析HTML;
  •   使用DOM或CSS选择器来查找、取出数据;
  •   可操作HTML元素、属性、文本;
  jsoup是基于MIT协议发布的,可放心使用于商业项目。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-64687-1-1.html 上篇帖子: HtmlExtractor 1.1 发布,网页信息抽取组件 下篇帖子: Apache Jackrabbit Oak 1.2.0 发布
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表