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.1.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.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leakpy-1.5.1.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.1.tar.gz
Algorithm Hash digest
SHA256 60e119879c998bbf325b372cee53ae0d2a3a0ec6b0707593cae447b1419253c0
MD5 efbc973611a3e7be29a1745abf6cdeef
BLAKE2b-256 92a6d0ba6ea682aebb0016a840e6590e2797833684d999a4a1109aeaac017c35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: leakpy-1.5.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8225421d8008930fb6f2ebdfe915b032aeef57b27b863953896f0041320ace8
MD5 e89a4814bd37c34bb072ea0458774ffb
BLAKE2b-256 c18eb5ffa36378778ece281b8dcb39ed8d643f22e5a07a96a6d78c4f13fc2ea1

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