Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python pygeoip example

>>> gi = pygeoip.GeoIP('GeoIPASNum.dat')
>>> gi.asn_by_name('cnn.com')
'AS5662 Turner Broadcasting'
Source by pygeoip.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #python #pygeoip
ADD COMMENT
Topic
Name
1+4 =