From 16198a44f2e1be4115ab40d0873752f9d10e93b6 Mon Sep 17 00:00:00 2001 From: Yifan Gao Date: Mon, 6 Mar 2017 22:25:51 +0800 Subject: [PATCH] update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 06ee6752..fa7f91fb 100644 --- a/README.md +++ b/README.md @@ -26,4 +26,25 @@ ## 如何获取数据 +### 直接下载 + IP列表(CIDR格式)保存在仓库的[result目录](https://github.com/gaoyifan/china-operator-ip/tree/master/result)中。其中`result/stat`存储了各运营商的IP数量的统计信息。 + +### 从BGP数据生成 + +#### 安装依赖 + +* [bgptools](https://github.com/gaoyifan/bgptools) (`cargo install bgptools `) +* [docker](https://www.docker.com) (`curl -sSL https://get.docker.com | sh`) + +#### 生成IP列表 + +```shell +./generate.sh +``` + +#### 统计IP数量 + +```shell +./stat.sh +``` \ No newline at end of file