File: domain.py

package info (click to toggle)
python-geoip 1.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 344 kB
  • sloc: ansic: 753; python: 248; makefile: 5
file content (9 lines) | stat: -rw-r--r-- 184 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
#!/usr/bin/python

from __future__ import print_function

import GeoIP

gi = GeoIP.open("/usr/share/GeoIP/GeoIPDomain.dat", GeoIP.GEOIP_STANDARD)

print(gi.org_by_addr("24.24.24.24"))