Skip to main content

LeakIX API Client

Project description

🚀 LeakPy

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

Note: This is not the official LeakIX client. Always refer to the Official LeakIX Python Client for the official client.

📥 Installation

To install LeakPy via PyPi:

pip install leakpy

🖥️ CLI Usage

$ leakpy -h

Options:

-h, --help            Show this help message and exit
-s {service,leak}, --scope {service,leak}
                        Type of information
-p PAGES, --pages PAGES
                        Define the number of pages
-q QUERY, --query QUERY
                        Specify the query
-P PLUGIN, --plugin PLUGIN
                        Specify a particular plugin
-o OUTPUT, --output OUTPUT
                        Output the results to a file
-r, --reset-api       Reset the saved API key
-lp, --list-plugins   List all available plugins
-f FIELDS, --fields FIELDS
                        Fields to extract from the JSON, comma-separated. Example: 'protocol,ip,port'
-sep SEPARATOR, --separator SEPARATOR
                        Separator for the extracted fields. Default is ','.

📘 Library Documentation

LeakixScraper

The LeakixScraper class provides a direct and simple interface to the leakix.net API.

Initialization:

from leakpy.scraper import LeakixScraper

scraper = LeakixScraper(api_key="Your_API_Key")

Methods:

  • execute(scope, query, pages, fields, sep)

    Conduct a search on leakix.net.

    Arguments:

    • scope (str): Type of information (e.g., "service" or "leak").
    • query (str): The query to be executed.
    • pages (int): Number of pages to fetch.
    • fields (str): Fields to extract from the JSON, comma-separated (e.g., "event_source, host, ip, port").
    • sep (str): Separator for the extracted fields (default is ',').

    Example:

    results = scraper.execute(scope="leak", query='+country:"France"', pages=10, fields="event_source, host, ip, port", sep=", ")
    print(results)
    

🚫 Disclaimer

LeakPy is an unofficial tool and is not affiliated with leakix.net. The developers of LeakPy are not responsible for any misuse or potential damage from this tool. Use responsibly and ensure you have the necessary permissions when accessing data.

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.2.tar.gz (5.8 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.2-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leakpy-1.5.2.tar.gz
  • Upload date:
  • Size: 5.8 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.2.tar.gz
Algorithm Hash digest
SHA256 056f77eae94faed57dfa81973caa14c69b500f88456f2d49ab1c319a6b988f5f
MD5 730ee48e071796a8f53ae5644f9444f1
BLAKE2b-256 3484b61fc40b061081fc55bc63657ff9bf4b3ff02a8a061662b2db779ed802dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: leakpy-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 61bb5b3d43a23f11dd75d7ea44d564815b3c8293d88af46115cc3b2e9efedbc3
MD5 d610b84767b9d2985ac3ed71180b17d2
BLAKE2b-256 568d4c88d3cd897118580384f829b0afbbc0c16e94f7371cd06d4c8ddc3f57a4

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