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.
- 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.
Retrieving np_token
: A quick guide to find your np_token
:
-
Open the webpage in your browser.
-
Press
F12
or useCtrl + 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
totokens.txt
Clone this repository:
git clone https://github.com/Enukio/NodepayBot.git
cd NodepayBot
Ensure you have Python 3.8 or newer installed.
Install the required dependencies:
pip install -r requirements.txt
Dependencies include:
-
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 formatprotocol://user:pass@host:port
. One per line.
-
Run the Script:
python main.py
- Choose whether to use proxies when prompted.
- View real-time logs in the terminal, including ping successes, failures, and connection states.
- Sign up at Proxies.fo.
- Go to Plans and only purchase the "ISP plan" (Residential plans don’t work).
- Top up your balance, or you can directly buy a plan and pay with Crypto!
- Go to the Dashboard, select your ISP plan, and click "Generate Proxy."
- Set the proxy format to
protocol://username:password@hostname:port
and choose any number for the proxy count. - Paste the proxies into
proxy.txt
.
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.
- Copy libcurl-impersonate-chrome.so.4 To Folder /data/data/com.termux/files/usr/lib
- Example Command On Termux :
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
This project is licensed under the MIT License.