Python GeoIP
Project description
PIP GeoIP
Get ip information offline without api
PyGeoIP is a package that can be use to get ip information without any api and it's free.
Available information
- Continent
- Country
- Iso Code
- City
- Zip
- timezone
- latitude
- longitude
- org
Features
- Can be use in offile
- It's Free
- No need api key
- Get Dictionary or JSON result
Tech
- [maxmind] - GeoIP2 Databases
Installation
PyGeoIP tested on python 3.8. All version of python 3 shoud support.
pip install pipgeoip
Example JSON object
import pipgeoip
print(get_geo_ip_json('204.236.186.159'))
{
"ip": "204.236.186.159",
"country": "United States",
"continent": "North America",
"iso": "US",
"city": "San Jose",
"zip": "95141",
"timezone": "America/Los_Angeles",
"latitude": 37.3388,
"longitude": -121.8916,
"org": "AMAZON-02"
}
Example Dictionary
print(get_geo_ip('204.236.186.159')['country'])
United States
MySelf
I am Himel, Software Engineer and Ethical HackerInstructions on how to use them in your own application are linked below.
Info | Link |
---|---|
Portfolio | https://himelrana.com |
GitHub | https://github.com/Swe-HImelRana |
https://www.linkedin.com/in/swe-himelrana |
Version: 1.0.0 - First Release
Version 1.0.1 - Version 1.0.0 removed - Configuration issue solved
Version 1.0.2 - Version 1.0.1 removed - Bug Fix
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pipgeoip-1.0.2.tar.gz
(36.7 MB
view hashes)