Skip to content

Python script to automate Ninja Heroes: New Era's Ninja Income

License

Notifications You must be signed in to change notification settings

Insisted/NH_Income_Automation

Repository files navigation

NH_Income_Automation

Ninja Heroes: New Era's Ninja Income Automation Script
Script to automate Ninja Income claim for those who have many accounts.

Table of Contents

Installation

  1. Install Python 3.8+
  2. Download or clone the repository
    git clone https://github.com/Insisted/NH_Income_Automation.git
  3. Get into the directory of the project
    Project Path
  4. Press [Shift] Right Click on the directory
  5. Click on Open in (Terminal|Command Prompt|PowerShell)
  6. Install the required packages
    pip install -r requirements.txt
  7. Find and fill in the accounts details in data.json

nh_claim-fast

Automation script using POST/GET requests, utilizing multithreading to claim the Ninja Income, and significantly ultimately more efficient than nh_claim.py.

To run

  1. Basically the same as Installation's 3 - 5 instruction above
  2. Run the script by double clicking or executing nh_claim-fast.py on terminal, with or without the starting point, e.g.
    nh_claim-fast.py 1
    nh_claim-fast.py 1
  3. Just wait for it to finish

Mobile Users (nh_claim-fast only)

This tutorial is only intended and should be applicable for any smartphone that have access to Python environment.
In this tutorial I will use Termux

Mobile Installation

  1. Install Termux from Github or F-Droid or run Python on any environment you want
  2. Install Python3 from Termux
    yes | pkg upgrade
    pkg install python3 -y
  3. Download and unpack or clone the repository from Termux
    pkg install git
    git clone https://github.com/Insisted/NH_Income_Automation.git
  4. Get into the directory of the project
    • If downloaded
      1. Execute
        termux-setup-storage
      2. use cd command to get into the extracted folder, e.g.
        cd storage/downloads/NH_Income_Automation-main
    • If cloned
      1. use cd command to get into the cloned repo
        cd NH_Income_Automation
    cd <dir_path>
  5. Install the required packages
    pip install -r requirements.txt
  6. Find and fill in the accounts details in data.json
    • If downloaded
      1. Edit the JSON file using any text editor and save it
    • If cloned
      1. use nano command to edit the JSON file (Copy from another text editor and paste it inside to make it easier)
        nano data.json
      2. After you're done, press CTRL Button from the menu and X on your keyboard
      3. Press Y on your keyboard, then Enter

To run

  1. Basically the same as Mobile Installation's 4 instruction above
  2. Run the script by executing nh_claim-fast.py on terminal, with or without the starting point, e.g.
    python nh_claim-fast.py 1
    python nh_claim-fast.py

Github Actions (Daily Automation)

This tutorial is designed for anyone to use the script without the need of installing anything aside for having a Github account.

Preparation

  1. Import or clone and publish this project on your own Github account
  2. Open the repository setting and head to Actions setting
  3. Make sure that the setting follows this image below
    Actions Setting
  4. Find and fill in your accounts details in data.json
  5. Commit and push the changes
  6. Check the Running Actions
  7. Unfortunately, daily claim information hasn't been implemented yet
    (I could do a simple HTTP/S request to send it through one's Telegram Bot, but I'll save that for later)

nh_claim (Discontinued)

Currently Will only be supporting Chrome, Edge, and Firefox and only on Windows presumably.
The script will run on your browser's private/incognito mode, except for Firefox.
you can set the value of BROWSER variable inside nh_claim.py with either chrome, edge or firefox to make it easier later to run the script with just nh_claim.py or just run the script directly

To run

  1. Basically the same as Installation's 3 - 5 instruction above
  2. Run the script by double clicking or executing nh_claim.py on terminal, followed by any browser listed above as an argument, e.g. nh_claim.py edge
  3. If the driver is not there yet, it will download the proper driver executable of the selected browser and store it inside driver\. Just wait until it's done downloading
    nh_claim.py edge
  4. When the browser window showed, go get your coffee

About

Python script to automate Ninja Heroes: New Era's Ninja Income

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages