https://github.com/weakish/taobaoip
https://github.com/weakish/taobaoip
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/weakish/taobaoip
- Owner: weakish
- License: other
- Created: 2016-04-24T12:09:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-24T12:12:30.000Z (about 10 years ago)
- Last Synced: 2025-01-12T18:11:43.578Z (over 1 year ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
taobaoip
=========
Given an IPv4 address, get its geography information
via [ip.taobao.com][] (淘宝IP地址库).
Given a domain, get geography information of routes.
[ip.taobao.com]: http://ip.taobao.com/
Install
--------
### Dependencies
- curl
- jq
- mtr
### With basher
```sh
; basher install weakish/taobaoip
```
Require [basher][] version: `>=39875bc`.
[basher]: https://github.com/basherpm/basher
### Manually
You just need to download `taobaoip.sh` and put it into your `$PATH`,
probably after renaming to `taobaoip` and `chomd a+x`.
Usage
-------
```sh
; taobaoip -h
Usage: taobaoip |
(64) ; taobaoip 140.205.140.33
中国华东上海市上海市阿里巴巴
; taobaoip ip.taobao.com
未分配或者内网IP
未分配或者内网IP
中国华东江苏省南京市
中国华东江苏省南京市
中国华东江苏省南京市
中国华东江苏省南京市
中国华东江苏省南京市
中国华东江苏省南京市联通
中国华东江苏省南京市联通
中国华东江苏省南京市联通
中国华北北京市北京市联通
中国华东上海市上海市联通
中国华东上海市上海市联通
中国华东上海市上海市阿里巴巴
```