Skip to main content

A Python package for tracking IP addresses and their locations.

Project description

IPTracker

IPTracker is a versatile Python library and service that allows you to track and analyze IP addresses, providing valuable insights into user activity and location.

Features

  • User Account Management: Easily create and manage user accounts to track IP addresses.
  • Secure Authentication: Password-protected accounts ensure secure access to tracking data.
  • Generate Tracking Links: Generate unique tracking links to monitor user interactions.
  • IP Location Lookup: Retrieve detailed information about the geographical location of IP addresses.
  • Real-Time Data Processing: Continuously monitor and process IP tracking data in real-time.
  • Customizable Settings: Tailor settings to your preferences, including location tracking and data processing intervals.

Installation

You can install IPTracker via pip:

pip install iptracker

Usage

from iptracker import IPTracker

# Initialize IPTracker with your credentials
username = "your_username"
password = "your_password"
redirect_url = "/"
tracker = IPTracker(username, password, redirect_url)

# Create an account
# print(tracker.create_account())

# Login
# print(tracker.login())

# Generate a tracking link
tracking_link = tracker.generate_link()
print("Tracking Link:", tracking_link)

# Retrieve data from the tracking link
# Replace the example URL with your generated tracking link
# tracker.link_data("https://xxxxxxxx.com/link/your_tracking_key")

Example

Check out this example to see how IPTracker can be used to monitor user interactions:

from iptracker import IPTracker

# Initialize IPTracker with your credentials
username = "your_username"
password = "your_password"
redirect_url = "https://github.com/Ishanoshada/iptracker/"
tracker = IPTracker(username, password, redirect_url,location=True)

# Create an account
# print(tracker.create_account())

# Login
# print(tracker.login())

# Generate a tracking link
tracking_link = tracker.generate_link()
print("Tracking Link:", tracking_link)

# Retrieve data from the tracking link
# Replace the example URL with your generated tracking link
tracker.link_data(tracking_link)
"""Processing Link Data...


IP: 127, Timestamp: Thu, 22 Feb 2024 12:05:48, User Agent: Mozilla/5.0 (Linux; 37.36

IP Information:
IP Address: 1..237
City: 
Region: 
Country: 
Location: 6.65
Organization: AS180a PLC.
Postal Code: 
Timezone: Asi

"""

Contributing

We welcome contributions from the community! Feel free to submit bug reports, feature requests, or pull requests to help improve IPTracker.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any inquiries or support, please contact us at Ishan.kodithuwakku.official@gmail.com

Repository Views Views

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iptracker-1.0.2.tar.gz (4.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page