ipscoop
Fast IP Scoop
Table of Contents
Installation
To install ipscoop, simply:
$ python3 -m pip install -U git+https://github.com/anbuhckr/ipscoop.git
or from source:
$ python3 setup.py install
CLI
Download db file for first time:
$ python3 -m ipscoop -data 8.8.8.8
Usage:
$ python3 -m ipscoop -h
Getting Started
#! /usr/bin/env python3
from ipscoop import IpScoop
#load ip
ip_scoop = IpScoop('8.8.8.8')
#all data
print(f'data: {ip_scoop.data}')
#cidr
print(f'cidr: {ip_scoop.cidr}')
#range
print(f'range: {ip_scoop.range}')
#country
print(f'country: {ip_scoop.country}')
#timezone id
print(f'timezoneid: {ip_scoop.tzid}')
#geo
print(f'geo: {ip_scoop.geo}')