A useful program to help you earn grass points
- GrassXD
- Table of Contents
- Registration
- Warnings and Notes
- About Proxy
- About config.json
- How to Use
- JavaScript Code to Get Data
- Possible Errors
- Discussion Forum
- Support
- Thank You
If you haven't registered for grass yet, please use the following URL: Click here
All risks are borne by the user!
This program only supports one account.
For proxies, I am currently experimenting with the following sites:
The format used follows these examples:
Example formats:
http://host:port
socks5://host:port
http://user:password@host:port
socks5://user:password@host:port
Here's an explanation of the contents of the config.json file:
| key | value | description |
|---|---|---|
| interval_ping | integer / positive number | delay duration between each ping to server, unit: seconds the extension itself has a delay of 2 minutes or 120 seconds |
-
Make sure your computer has Python and Git installed
-
Open terminal on your device (CMD/Powershell/Terminal)
-
Clone this repository. You can use the command below:
git clone https://github.com/akasakaid/grassxd.git
-
Enter the grassxd folder:
cd grassxd -
Then install the required libraries:
python -m pip install -r requirements.txt
-
Fill in your proxies in the proxies.txt file according to the examples I provided in About Proxy. If you don't fill in the
proxies.txtfile, it will automatically use your public IP. -
Run the
setup.pyfile first. You will be prompted to enter the email and password of your grass account to get authentication (id and token).python setup.py
If you encounter errors or other issues, please get your userid and token manually. See JavaScript Code to Get Data
-
Run the
main.pyfile:python main.py
Make sure you are logged into the grass website.
You can use the JavaScript code below by pasting it in the console menu in the dev tools / dev options in your browser.
Here's the JavaScript code to get userid:
copy(JSON.parse(localStorage.getItem("userId")))If you see the warning "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 first.
The code above automatically copies the userid to your clipboard, so you just need to paste it into the userid.txt file.
Here's the JavaScript code to get the token:
copy(JSON.parse(localStorage.getItem("accessToken")))If you see the warning "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 first.
The code above automatically copies the token to your clipboard, so you just need to paste it into the token.txt file.
Here are some possible errors and their solutions:
Error message: Cannot write to closing transport
Why does it happen? This error message appears when the program wants to send data but the connection to the server has been closed. This might be caused by the proxy you're using or the server has closed your connection.
Solution? Try reducing the ping interval in the config.json file. The default is 120 (seconds), try reducing it to 60 (seconds) or less. If it still occurs, your proxy might be poor quality.
What happens if it's not stopped or fixed? This is just my speculation, but you might receive fewer points as a result.
If you have any questions, please ask here
If you like my project, you can buy me a coffee through the websites below:
-
Indonesian Trakteer.id
-
Ton Address:
UQBDK-6ed0f2kX63hX4LB1rsLcnhx--zthwT_6g25a0Qakvb