html5lib 解析HTML Python库

html5lib简介

html5lib,Python第三方库,用于解析HTML,符合WHATWG HTML规范。

html5lib应用实例

import html5lib
with open("mydocument.html", "rb") as f:
    document = html5lib.parse(f)

html5lib Github统计数据

MIT license

Github 1.1k stars

html5lib安装命令

pip install html5lib

html5lib Python版本要求

html5lib works on CPython 2.7+, CPython 3.5+ and PyPy

免责声明:内容编辑自网络,仅供参考,不保证正确性,不作任何决策依据!!以上数据皆截止于博文的写稿日期。


行业导航 / Python指南 :
























Copyright © 2022-2024 笨鸟工具 x1y1z1.com All Rights Reserved.