A package for analyze you IP and fetch additional information like ISP and LAT-LON, CITY, COUNTRY, etc
Project description
Net Analysis
Net Analysis is a Python package that provides utilities for analyzing network information including IP lookup, proxy detection, and more.
Features
- IP Lookup: Analyze IP addresses to retrieve details such as country, city, state, time zone, ISP, and more.
- Proxy Detection: Detect active proxies and retrieve information about them.
- User-Agent Customization: Ability to set custom User-Agent headers for HTTP requests.
Installation
You can install Net Analysis using pip:
pip install net-analysis
Usage
from net_analysis import NetAnalysis
# Initialize net_Analysis instance
Analysis = NetAnalysis("http://user:pass@12.34.567.89:12345")
# Retrieve network information
print("City:", Analysis.city)
print("Country:", Analysis.country)
print("IP Address:", Analysis.ip)
# More attributes available, such as state, time_zone, ISP, etc.
# Check for active proxies
proxy_name = Analysis.check_proxy()
if proxy_name:
print("Active Proxy:", proxy_name)
else:
print("No active proxy found.")
Dependencies
- requests: For making HTTP requests.
- countryinfo: For retrieving country information.
- loguru: For logging.
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file net_analysis-1.0.1.tar.gz.
File metadata
- Download URL: net_analysis-1.0.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ffc9bb161ac9fd0e230eeb2b941228267f9a2bcdfdaee48a036f93264e62716
|
|
| MD5 |
022533f10bbeb6b214346dea58805740
|
|
| BLAKE2b-256 |
1346214e032c599eb9a9817885f937870842a35f03ec8dc078c7ca77ac0de4fb
|
File details
Details for the file net_analysis-1.0.1-py3-none-any.whl.
File metadata
- Download URL: net_analysis-1.0.1-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4691ce6359e95fb5d4879c047200b70702b9e1665fa41a818a19912c9ac0f937
|
|
| MD5 |
00f921016a811c343ba1d625aa274321
|
|
| BLAKE2b-256 |
f3621266b5562a939a0a958cc227421111a6148b9c683aed788c7a5ae0e21e32
|