• Stars
    star
    128
  • Rank 281,044 (Top 6 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 11 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

QQWry golang version

QQWry

纯真IP库 golang 版

有关纯真IP库的文档详见 http://lumaqq.linuxsir.org/article/qqwry_format_detail.html

1. 依赖

  • mahonia 处理 GBK 编码的地址信息 (请确保先装好 hg)
go get code.google.com/p/mahonia

update:

go get github.com/yinheli/mahonia
  • 纯真 IP 库

下载地址 http://update.cz88.net/soft/qqwry.rar

2. 使用

  • 下载
go get github.com/yinheli/qqwry
  • 在项目中引入
import (
	"github.com/yinheli/qqwry"
	"log"
)

func main() {
	q := qqwry.NewQQwry("qqwry.dat")
	q.Find("180.89.94.90")
	log.Printf("ip:%v, Country:%v, City:%v", q.Ip, q.Country, q.City)
	// output: 
	// 2014/02/22 22:10:32 ip:180.89.94.90, Country:北京市, City:长城宽带
}

3. 使用注意

  • qqwry 不是线程安全的
  • qqwry 没有使用缓存

4. license

Licensed under MIT.

More Repositories

1

sshw

🐝 ssh client wrapper for automatic login
Go
757
star
2

docker-thunder-xware

Dockerizing thunder xware
Shell
296
star
3

udppunch

udppunch hole for wireguard
Go
141
star
4

kungfu

Flexible DNS hijacking and proxy tool.
Rust
40
star
5

ipmi-fan-control

A tool to control the fan speed by monitoring the temperature of CPU via IPMI.
Rust
18
star
6

tencentsig

😜golang 原生支持的 腾讯云 usersig 生成库
Go
15
star
7

mirror_mygithub

把 github 的项目备份到本地
Go
15
star
8

wgx

wireguard tool to manage / generate configuration. Maintain one yaml configuration file to quickly build wireguard network.
Rust
13
star
9

aishahai-tb

爱莎海 - 淘宝 - 运维工具
Java
11
star
10

lightweight-java-profiler

forked from from code.google.com/p/lightweight-java-profiler
C++
9
star
11

crontab.guru

mirror of crontab.guru
8
star
12

dukpt

dukpt decrypt tool
Java
7
star
13

mybatis-generator-tool

another mybatis cli generator tool with some useful plugins
Java
5
star
14

dnspod-ddns

simple ddns tool for dnspod
Rust
5
star
15

javaemvreader

Automatically exported from code.google.com/p/javaemvreader
Java
4
star
16

gfwlist2dnsmasq

auto download and convert gfwlist to dsnmasq config file
Go
3
star
17

v2ex_tipsbox

v2ex tips box
JavaScript
3
star
18

har-analyzer

Analysis har file for help config kungfu rule file
Rust
2
star
19

dev-tools

Go
2
star
20

generatemodel

automatic generate go struct from database(MySQL) table
Go
2
star
21

database-struct

Go
1
star
22

es-mysql-mapping-helper

convert mysql table struct to elasticsearch index mapping
Go
1
star
23

mahonia

Automatically exported from code.google.com/p/mahonia
Go
1
star
24

dingding-jenkins-plugin

Java
1
star
25

redwood-filter

Automatically exported from code.google.com/p/redwood-filter
Go
1
star
26

wgc

wireguard p2p via stun & irc
Go
1
star
27

leetcode-rs

Rust
1
star
28

kungfu-rs

Rust
1
star
29

kungfu-docker

kungfu setup for example
Dockerfile
1
star
30

hsm-go-checker

SJL22 加密机健康状态检查
Go
1
star
31

tcpproxy

tcp proxy
Go
1
star
32

mybatis-comment-plugin

mybaits 注释生成插件
Java
1
star
33

import-usage-example

import-usage-example
JavaScript
1
star
34

act-kaniko

Python
1
star
35

kaniko-build

kaniko cli 工具,可以帮你快速把一个 Dockerfile 在 k8s 集群中打包生成镜像并推送到镜像库
Python
1
star