WIP:将存档的 parler 页面解析为结构化的 html

时间:2021-06-28 18:35:32
【文件属性】:
文件名称:WIP:将存档的 parler 页面解析为结构化的 html
文件大小:37KB
文件格式:ZIP
更新时间:2021-06-28 18:35:32
parler-parse 解析器Parler HTML 输入(stdin),结构化 JSON 输出(stdout)可能对输入elasticsearch 或与视频/图像转储进行交叉引用很有用。用法您将需要一个 rust 编译器(最简单的方法是通过rustup )来从源代码构建。之后,在终端中运行以下命令:# clone the repo git clone https://github.com/ilsken/parler-parse.git && cd parler-parse # run the example https://github.com/ilsken/parler-parse.git cargo run < examples/echo--parent-no-comment.html命令行选项USAGE: parler-indexer [FLAGS] [OPTIONS] [--] [path]... FLAGS: -c, --compact Output compact (single line) JSON. Defaults to true if stdin
【文件预览】:
parler-parse-main
----.gitmodules(96B)
----vendor()
--------base62()
----Cargo.lock(27KB)
----LICENSE(1KB)
----src()
--------main.rs(10KB)
--------parse()
--------args.rs(7KB)
----Cargo.toml(643B)
----examples()
--------echo--parent-no-comment.html(12KB)
----.gitignore(26B)
----README.md(5KB)

网友评论