Skip to main content

Testnet faucet extractor (Proof of Concept)

Project description

Faucet Extractor PoC

This project is a Proof of Concept (PoC) for a faucet extractor. It sends a request to a given URL of a faucet and tries to claim a testnet token.

Features

  • Sends a request to a specified faucet URL
  • Attempts to claim testnet tokens

Requirements

  • Python 3.10
  • requests library
  • python-dotenv library

Environment Variables

The following environment variables need to be set before using the project:

  • DISCORD_WEBHOOK_URL (optional) - Discord webhook URL for notifications
  • ERC20_ADDRESSES - Comma-separated list of ERC20 addresses
  • BERA_FAUCET_URL - Bera faucet URL
  • MONAD_FAUCET_URL - Monad faucet URL

Installation

Method 1: Install from PyPI (Recommended)

Install the package directly from PyPI:

pip install faucet_extractor_poc

Method 2: Install from Source

  1. Clone the repository:

    git clone https://github.com/niagarafinance/faucet-extractor-poc.git
    
  2. Navigate to the project directory:

    cd faucet-extractor-poc
    
  3. Install the package in development mode:

    pip install -e .
    

Usage

Before running the project, make sure to set the required environment variables.

export BERA_FAUCET_URL="https://bera-faucet-url.com"
export MONAD_FAUCET_URL="https://monad-faucet-url.com""

To run the project, use the appropriate command:

Using the installed package

faucet_extractor_poc --faucet MON 0x1234567890123456789012345678901234567890

Single address with faucet type

faucet_extractor_poc --faucet MON 0x1234567890123456789012345678901234567890

Multiple addresses with faucet type

faucet_extractor_poc --faucet BERA 0xAddress1 0xAddress2 0xAddress3

Using environment variable with faucet

export ERC20_ADDRESSES="0xAddress1,0xAddress2"
faucet_extractor_poc --faucet BERA

Running directly from the source

If you installed from source, you can also run the module directly:

python -m src.faucet_extractor_poc.extract --faucet MON 0x1234567890123456789012345678901234567890

Show help

faucet_extractor_poc --help

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

faucet_extractor_poc-0.1.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

faucet_extractor_poc-0.1.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file faucet_extractor_poc-0.1.1.tar.gz.

File metadata

  • Download URL: faucet_extractor_poc-0.1.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for faucet_extractor_poc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 29b891111ca32052bffc7eaa64e4617a333e4b84142f4a892958ec8a783e148c
MD5 e85ebf0cd0ad49ed9fea0ebe7fff67da
BLAKE2b-256 65e9186d22adcd0b343f49a5d858f612664441f7d4428916bb9602b539a99972

See more details on using hashes here.

File details

Details for the file faucet_extractor_poc-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for faucet_extractor_poc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db8fcb6397226cb5019d4aab931a355e67ad4866d005184cf6dc31ccff819339
MD5 9c876578a1cac6a453f4cd913f7b01ae
BLAKE2b-256 8244a04d6f53ebeeaf5b2ba463d6c5306f6e0494ac36f6dc6ef77a41bd8bdc59

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