slurp:BeautifulSoup4 打包成命令行工具

时间:2021-06-04 07:45:21
【文件属性】:
文件名称:slurp:BeautifulSoup4 打包成命令行工具
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-04 07:45:21
bookmarks cli-utilities html-parsing netscape Python 打包成命令行工具。 现在这个工具只是用 BeautifulSoup4 解析,并写出结果。 例如,这有助于正确解析 Netscape 书签文件的结构,该文件省略了许多结束标记。 安装 从 Python 包索引( ): (sudo) pip install beautifulsoup4-slurp 或来自 : git clone cd slurp (sudo) python setyp.py 安装 用法 显示帮助: 啜饮 -h 用 html5lib 解析并漂亮地打印到标准输出中: slurp -i bookmarks.html -p 'html5lib' -y 用 lxml 解析并漂亮地打印到标准输出中: slurp -i bookmarks.html -p 'lxml' -y 将漂亮打印输出到文件: slurp -y -i bookmarks.html -o boo
【文件预览】:
slurp-master
----README.rst(2KB)
----bin()
--------slurp(375B)
----slurp()
--------__init__.py(2KB)
----LICENSE(1KB)
----setup.py(2KB)
----.gitignore(39B)

网友评论