Skip to content

An easy-to-use automated Grass point mining, by running a Python script built to handle connections to WebSockets.

License

Notifications You must be signed in to change notification settings

syauqi-a/GetGrassMiner

Repository files navigation

GetGrassMiner

An easy-to-use automated Grass point mining, by running a Python script built to handle connections to WebSockets. You can use multiple devices and IP addresses to maximize earnings. This program was tested on Windows OS using Python version 3.10.

Table of Contents

Warnings and Notes

All risks remain with the user! This program only supports one account.

Features

  • Easy to setup! Even if you don't understand Python at all.
  • Connects to a WebSocket server using proxies.
  • Allow multiple proxies.
  • Automatically removes the dead proxy from the File!
  • Automatically fetch data from API or proxy sources.
  • Handles all kinds of Error such a Dead proxy / SSL: WRONG_VERSION_NUMBER / invalid length of packed IP address / Empty connect reply / sent 1011 (internal error) keepalive.
  • [NEW!!!] Deployment steps using AWS EC2. Available in English and Bahasa.

Registration

If you haven't registered for grass yet, please use the following URL: Click here.

How to Use Locally

  1. Make sure your computer has Python and Git installed.

  2. Open terminal on your device (CMD/Powershell/Terminal).

  3. Clone this repository. You can use the command below.

    git clone https://github.com/syauqi-a/GetGrassMiner.git
  4. Enter the GetGrassMiner folder.

    cd GetGrassMiner
  5. Generate .env file manually from example file.

    cp .env.example .env

    Follow the instructions to setup the generated .env file.

  6. If necessary, set the config.json file following the instructions as desired.

  7. (Optional) It is recommended to create a virtual environment.

    python -m venv .venv

    Then activate the virtual environment that has been created. Adjust it to the operating system you are using.

    # on Unix/macOS:
    source .venv/bin/activate
    
    # on Windows:
    .venv\Scripts\activate
  8. Then install the required libraries.

    python -m pip install -r requirements.txt
  9. Fill in your proxies in the proxies.txt file according to the examples provided in Proxies. If you do not complete the proxies.txt file, the program will stop. To automatically generate proxies from the API, see here.

  10. Run the main.py file.

python main.py

Setting up .env file

In the .env file you have to set the user id with yours. If you don't know your user id, do the following steps.

  1. Open the link and log in https://app.getgrass.io/dashboard.

  2. Press F12 on the page to open the console (Ctrl + Shift + J).

  3. Copy following code to the console.

    copy(JSON.parse(localStorage.getItem("userId")))

    If you see Warning: Don't paste code into the DevTools Console that you don't when pasting the JavaScript code above, type allow pasting and press enter and try again.

  4. The code above automatically copies the user id to your clipboard, so you just need to paste into the .env file.

Setting up config.json file

For usage examples, see the config.json.example file. Here's an explanation of the contents of the config.json file:

key value description
proxy dictionary
proxy.filename string Proxy file path.
proxy.auto_fetch_new bool Whether to perform a fetch if the proxy queue has run out.
proxy.pool_list array
proxy.pool_list.{}.response_format string The response returned when performing a fetch to a URL.
proxy.pool_list.{}.url string URL for fetching proxy data, support an API URL if you have one.
proxy.pool_list.{}.proxy_list_key string If the response format is JSON, tell which key stores the proxy list.
proxy.pool_list.{}.proxy_key string If the response format is JSON, tell which key stores the proxy string in the proxy list.
proxy.pool_list.{}.proxy_row string If the response format is CSV, tell which row stores the proxy string.
connection dictionary
connection.ws_url string Websocket URL.
connection.number_of_proxies integer The number of proxies running concurrently.
connection.max_retries integer Maximum limit of attempts to make connections to Websockets.
connection.retry_delay integer The retry time delay establishes a connection to Websockets.
connection.interval_ping integer Delay time sends ping messages to Websocket.
connection.max_timeout integer Timeout when establishing connection to Websocket.
extension dictionary
extension.id string
extension.version string

Proxies

Save the proxy list in the proxies file. The format used follows the following example:

http://host:port
socks5://host:port
http://user:password@host:port
socks5://user:password@host:port

Generate Proxies

If you have added the proxy pool list to your config.json (see the guide to setting up config.json here), you can automate fetching proxy data directly from the API to a proxies.txt file.

python UpdateProxiesFile.py

Discussion Forum

If you have any questions, don't hesitate to ask me or discuss here.

Support Me Please

If you like my project, you can buy me a coffee through the websites below:

  • USDT (BNB Smart Chain (BEP20)) Address: 0x5389781e243db1c3bb5b3e734a17d8c5eb963106.

    You can use this address to send any other currency available on Binance. Get 10% commission on every trade if you use my link.

  • TON Address: EQD5mxRgCuRNLxKxeOjG6r14iSroLF5FtomPnet-sgP5xNJb (MEMO: 136075219).

  • SOLANA Address: Hn4G1XZmKcdWRPWTS4UX59wRA2cuDZ3uQE28fCjQ6sRb.

Prefer to buy me cendol? Try one of them:

  • Trakteer.id: send me a tip.

Thank You

Thank you for taking the time to check out my repository! This project is inspired by two amazing individuals, @Solana0x and @akasakaid. You guys are awesome!

About

An easy-to-use automated Grass point mining, by running a Python script built to handle connections to WebSockets.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages