1 个不稳定版本
使用旧的 Rust 2015
0.1.0 | 2018年4月26日 |
---|
#3 in #blocked
81KB
1.5K SLoC
zicsv-tool
zicsv-tool
- 解析 Zapret-Info CSV 列表的命令行工具。
安装
-
不要忘记在当前 shell 会话中更新
PATH
export PATH="${PATH}:${HOME}/.cargo/bin"
-
下载、编译并安装
zicsv-tool
cargo install zicsv-tool
用法
在执行其他任何操作之前,请先下载最新的 dump.csv。
支持命令
into-json
- 将dump.csv
转换为 JSON 格式。search
- 搜索被阻止的地址。select
- 打印被选中类型的被阻止地址。updated
- 打印dump.csv
的最后更新日期。
注意,默认情况下,此工具从 stdin 读取 dump.csv
并将任何输出写入 stdout。
帮助
zicsv-tool --help
zicsv-tool into-json --help
zicsv-tool search --help
zicsv-tool select --help
zicsv-tool updated --help
按地址搜索记录
示例
$ zicsv-tool -i dump.csv search "http://google.com"
示例输出
http://google.com:
http://google.com/: not found
google.com: not found
74.125.205.100: blocked
IPv4 address is equal to blocked IPv4 address:
Blocked: 74.125.205.100
Organization: Генпрокуратура
Document ID: 27-31-2018/Ид2971-18
Document date: 2018-04-16
74.125.205.138: not found
74.125.205.102: blocked
IPv4 address is equal to blocked IPv4 address:
Blocked: 74.125.205.102
Organization: Генпрокуратура
Document ID: 27-31-2018/Ид2971-18
Document date: 2018-04-16
74.125.205.113: blocked
IPv4 address is equal to blocked IPv4 address:
Blocked: 74.125.205.113
Organization: Генпрокуратура
Document ID: 27-31-2018/Ид2971-18
Document date: 2018-04-16
74.125.205.139: not found
74.125.205.101: blocked
IPv4 address is equal to blocked IPv4 address:
Blocked: 74.125.205.101
Organization: Генпрокуратура
Document ID: 27-31-2018/Ид2971-18
Document date: 2018-04-16
依赖项
~22MB
~375K SLoC