Skip to content

Exclude0122/geoip

Repository files navigation

GEOIP

Convert geoip databases to v2ray format.

Releases

IP address data powered by IPinfo

Usage

usage: geoip [-h] [-o OUTPUT] [--text TEXT] [-f FILTER] input

positional arguments:
  input                input csv file

options:
  -h, --help           show this help message and exit
  -o, --output OUTPUT  output file
  --text TEXT          text output
  -f, --filter FILTER  country code filter

Convert csv to geoip.dat

python3 main.py country.csv

Convert csv to geoip.dat and only inlcude cn and private

python3 main.py country.csv --filter cn --filter private

Convert csv to text format and write to text1 folder:

python3 main.py contry.csv --text text1

Data sources

https://db-ip.com/db/download/ip-to-country-lite

https://ipinfo.io/products/free-ip-database

About

Convert geoip databases to v2ray format

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages