Skip to content

Instantly share code, notes, and snippets.

@jae1911
Last active February 26, 2024 00:56
Show Gist options
  • Save jae1911/481816c9ef5f35bcd1087c43ef1eda56 to your computer and use it in GitHub Desktop.
Save jae1911/481816c9ef5f35bcd1087c43ef1eda56 to your computer and use it in GitHub Desktop.
Funni mining
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"])

How to setup the thing

python -m venv venv
  
# WINDOWS POWERSHELL
. .\venv\Scripts\Activate.ps1
  
# Linux/macOS
source venv/bin/activate
  
pip install requests
  
python miner.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment