Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huacnlee/ip-location
通过淘宝 IP 库查询 IP 所在地域位置 http://ip.taobao.com
https://github.com/huacnlee/ip-location
Last synced: 4 days ago
JSON representation
通过淘宝 IP 库查询 IP 所在地域位置 http://ip.taobao.com
- Host: GitHub
- URL: https://github.com/huacnlee/ip-location
- Owner: huacnlee
- License: mit
- Created: 2014-08-15T05:26:11.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-12-15T07:47:01.000Z (almost 7 years ago)
- Last Synced: 2024-10-04T13:35:26.618Z (about 1 month ago)
- Language: Ruby
- Size: 137 KB
- Stars: 18
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ip-location
===========通过淘宝 IP 库查询 IP 所在地域位置 http://ip.taobao.com
## Limit
* 官方限制每个服务器请求过去屏率无能超过 10 Qps。
## Usage
```ruby
irb> require "ip-location"
true
irb> info = IPLocation.query("222.212.254.17")
irb> info.country
"中国"
ifb> info.region
"四川省"
irb> info.city
"成都市"
irb> info.isp
"电信"
irb> info.fullname
"中国四川省成都市"