Skip to main content

LeakIX API Client

Project description

🚀 LeakPy

LeakPy is a third-party client designed to interact with the leakix.net API using Python.

Note: This is not the official LeakIX client. The official LeakIX client for Python can be found at https://github.com/LeakIX/LeakIXClient-Python.

📥 Installation

To install LeakPy via PyPi:

pip install leakpy

🖥️ CLI Usage

$ leakpy -h
usage: leakpy [-h] [-s {service,leak}] [-p PAGES] [-q QUERY] [-P PLUGIN] [-o OUTPUT] [-r] [-lp]

options:
  -h, --help            show this help message and exit
  -s {service,leak}, --scope {service,leak}
                        Type of information
  -p PAGES, --pages PAGES
                        Number of pages
  -q QUERY, --query QUERY
                        Specify the query
  -P PLUGIN, --plugin PLUGIN
                        Specify the plugin
  -o OUTPUT, --output OUTPUT
                        Output file
  -r, --reset-api       Reset the saved API key
  -lp, --list-plugins   List available plugins

📘 Library Documentation

LeakixScraper

The LeakixScraper class enables interaction with the leakix.net API.

Initialization

You can instantiate the class by passing an API key:

from leakpy.scraper import LeakixScraper

scraper = LeakixScraper(api_key="Your_API_Key")

Methods

  • execute(scope, query, pages)

    Execute a search on leakix.net.

    Arguments:

    • scope (str): Type of information (e.g., "service" or "leak").
    • query (str): The query to be performed.
    • pages (int): Number of pages to retrieve.

    Example:

    results = scraper.execute(scope="leak", query='+country:"France"', pages=10)
    print(results)
    

🚫 Disclaimer

LeakPy is an unofficial tool and has no affiliation with leakix.net. The developers of LeakPy are not responsible for any misuse or potential damage caused by this tool. Use LeakPy responsibly and ensure you have permission to access any data you're attempting to retrieve.

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

leakpy-1.5.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leakpy-1.5-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file leakpy-1.5.tar.gz.

File metadata

  • Download URL: leakpy-1.5.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for leakpy-1.5.tar.gz
Algorithm Hash digest
SHA256 b5344450cd29246055e4540c8c03356e89ba6357ddbc6eaeef8cce0f238fab34
MD5 1c006184a6787f1b485155930edd4cd6
BLAKE2b-256 c3352b9e978c5ec14091bcbd749a2cc192f10cac1b0b2b83ac038a40b4913506

See more details on using hashes here.

File details

Details for the file leakpy-1.5-py3-none-any.whl.

File metadata

  • Download URL: leakpy-1.5-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for leakpy-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bbc9ea037fddecf2912f549ded3c076fdcb3f511f5a656b8eaf75b6d3cb366d4
MD5 e1e5731b23fca3b12ef2b89edab3762e
BLAKE2b-256 344c4814ff0ad20507a1622e032f332455a9b83041ddde0ea673192ad0d2cffd

See more details on using hashes here.

Supported by

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