Skip to content

dadevel/python-ipinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-ipinfo

Create a free account at ipinfo.io and note your access token. Then proceed with the example below.

❯ export IPINFO_TOKEN=0123456789abcd
❯ pip3 install --user git+https://github.com/dadevel/python-ipinfo.git@main
❯ python3
>>> import ipinfo
>>> info = ipinfo.lookup('1.1.1.1')
>>> print(info)
IpInfo(as_domain='cloudflare.com', as_name='Cloudflare, Inc.', asn='AS13335', continent='NA', continent_name='North America', country='US', country_name='United States')

About

Offline IP address lookup with ipinfo.io

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages