Skip to content

Python3 script which downloads MaxMind GeoLite2 free databases

License

Notifications You must be signed in to change notification settings

eclecticiq/maxmind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

This Python3 script can be used to fetch GeoLite2 Free Downloadable Databases

Usage

Usage: maxmind.py [options]

Options:
  -h, --help            show this help message and exit
  -d DB, --db=DB, --database=DB
                        database (asn|city|country) [default: city]
  -f FORMAT, --format=FORMAT
                        database format (binary|csv) [default: binary]
  -p PATH, --path=PATH  path to extract the files [default: .]
  -q, --quiet           don't print any messages

Systemd

A sample systemd service and timer template are provided which downloads the specified database in binary format every week.

systemctl enable maxmind@country.timer
systemctl start maxmind@country.timer

About

Python3 script which downloads MaxMind GeoLite2 free databases

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages