Skip to content

NodepayBot is a Python automation tool for the Nodepay platform. It streamlines workflows with features like token and proxy management, API interaction, and real-time logging. Lightweight, efficient, and customizable, NodepayBot is ideal for automating repetitive tasks and managing multiple connections with ease.

License

Notifications You must be signed in to change notification settings

iPowerLife/NodepayBot

 
 

Repository files navigation

NodepayBot - Ping Utility

NodepayBot is a Python-based tool designed to automate tasks for the Nodepay service, featuring token and proxy management, API interaction, and connection monitoring. This bot makes use of asynchronous programming for efficient operations and ensures a smooth automation experience.


Features

  • Automated API Interactions: Handles session initialization, pings, and connection states.
  • Proxy Support: Enables using proxies for improved security and anonymity.
  • Token Management: Reads and utilizes tokens for authenticated interactions.
  • Logging: Real-time and colorful logs powered by loguru for better debugging and monitoring.
  • Customizable Settings: Adjustable ping intervals and retry limits.

Get NP_TOKEN

Retrieving np_token: A quick guide to find your np_token:

  • Open the webpage in your browser.

  • Press F12 or use Ctrl + Shift + I (Windows/Linux) / Cmd + Option + I (Mac) to open the developer console.

  • Go to the Console tab.

  • Enter the following command:

    localStorage.getItem('np_token');
  • The value displayed is your np_token.

  • Save np_token to tokens.txt


Setup

Clone this repository:

git clone https://github.com/Enukio/NodepayBot.git
cd NodepayBot

Requirements

Ensure you have Python 3.8 or newer installed.

Install the required dependencies:

pip install -r requirements.txt

Dependencies include:


Usage

  1. Prepare Configuration Files:

    • tokens.txt: A list of tokens for API authentication. One token per line.
    • proxies.txt (optional): A list of proxies in the format protocol://user:pass@host:port. One per line.
  2. Run the Script:

python main.py

Optional:

  • Choose whether to use proxies when prompted.
  • View real-time logs in the terminal, including ping successes, failures, and connection states.

Need Proxy?

  1. Sign up at Proxies.fo.
  2. Go to Plans and only purchase the "ISP plan" (Residential plans don’t work).
  3. Top up your balance, or you can directly buy a plan and pay with Crypto!
  4. Go to the Dashboard, select your ISP plan, and click "Generate Proxy."
  5. Set the proxy format to protocol://username:password@hostname:port and choose any number for the proxy count.
  6. Paste the proxies into proxy.txt.

Configuration

You can adjust the following parameters in the main.py file:

  • PING_INTERVAL: Interval between pings (in seconds).
  • RETRIES_LIMIT: Maximum retry attempts before declaring a failure.
  • API endpoints are specified in the DOMAIN_API_ENDPOINTS dictionary.

Fix Termux Error

cp libcurl-impersonate-chrome.so.4 /data/data/com.termux/files/usr/lib

Make Sure Allowed Permission Storage On Setting Termux

  • Install Python 3.10
pkg update && upgrade
pkg install tur-repo
pkg install python-is-python3.10
  • Install Requirements
pip install --upgrade pip
pkg install -y rust binutils
CARGO_BUILD_TARGET="$(rustc -Vv | grep "host" | awk '{print $2}')" pip install maturin
pip install asyncio
pip install requests
pip install curl-cffi
pip install fake-useragent
pip install loguru
pip install pyfiglet
pip install termcolor

License

This project is licensed under the MIT License.

About

NodepayBot is a Python automation tool for the Nodepay platform. It streamlines workflows with features like token and proxy management, API interaction, and real-time logging. Lightweight, efficient, and customizable, NodepayBot is ideal for automating repetitive tasks and managing multiple connections with ease.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.7%
  • Batchfile 9.3%