python -m venv venv
# WINDOWS POWERSHELL
. .\venv\Scripts\Activate.ps1
# Linux/macOS
source venv/bin/activate
pip install requests
python miner.py
Last active
February 26, 2024 00:56
-
-
Save jae1911/481816c9ef5f35bcd1087c43ef1eda56 to your computer and use it in GitHub Desktop.
Funni mining
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from requests import get, post | |
userid = input("Enter your userid (U-something): ") | |
baseURL = f"https://account.neos.com/v1/meteors/{userid}" | |
def get_meteors(): | |
data = get(baseURL) | |
if data.text == "-1": | |
print("User not found") | |
exit() | |
elif data.text == "-2": | |
print("Database issue") | |
exit() | |
return data.json() | |
def mine_stuff_idk(meteor_id): | |
url = f"{baseURL}/mined/{meteor_id}" | |
res = post(url) | |
if res.text == "-1": | |
print(f"Meteor {meteor_id} not found") | |
elif res.text == "1": | |
print(f"Meteor {meteor_id} mined") | |
else: | |
print(f"Meteor {meteor_id} already mined") | |
all_meteors = get_meteors() | |
for meteor in all_meteors["meteors"]: | |
mine_stuff_idk(meteor["id"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment