8000 GitHub - greggy/python-ipgeobase: Helper to get ipgeobase info
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

greggy/python-ipgeobase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python IPGeoBase

Description:

This helper can generate pickle db from txt files, than you can use this db to get ipgeobase (http://ipgeobase.ru) info by ip address.

Usage:

  1. Download latest archieve of txt files http://ipgeobase.ru/files/db/Main/geo_files.tar.gz
  2. Put both txt files to geo_files dir
  3. Run 'python cidr_create.py'
  4. Look at example.py (in file was written django custom managemen command) how to use cidr_pickle.db

Simple example

>>> from example import ipgeobase_info
>>> c, r, t = ipgeobase_info('46.20.191.2')
>>> print c, r, t
RU Владимирская область Владимир

About

Helper to get ipgeobase info

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0