Skip to content

Instantly share code, notes, and snippets.

@Isopach
Created February 7, 2021 02:48
Show Gist options
  • Save Isopach/73f1e1e2dcef58b375ed3a6c0c86cf2b to your computer and use it in GitHub Desktop.
Save Isopach/73f1e1e2dcef58b375ed3a6c0c86cf2b to your computer and use it in GitHub Desktop.
astats-xp-bot to visit your profile and get 15+ experience every day
#!/usr/bin/python3
import requests
import time
import random
proxies = {"http":"protocol://user:pass@ip:port"} # Requires requests[socks] if using SOCKS5
steam64 = ""
for i in range(0,10): # 10 consecutive days
profile = "http://astats.astats.nl:80/astats/User_Info.php?SteamID64=" + steam64
cookies1 = {"COOKIE_NAME": "your auth cookie",
"cookieconsent_dismissed": "yes",
"PHPSESSID": "your php sess cookie"}
headers1 = {"Connection": "keep-alive",
"Upgrade-Insecure-Requests": "1",
"DNT": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "fr-CH, fr;q=0.9, en;q=0.8, de;q=0.7, *;q=0.5"}
res1 = requests.get(profile, headers=headers1, cookies=cookies1)
if res1.status_code == 200:
print("Success!")
time.sleep(random.uniform(3.0,15.0)*60) # Sleeps for 3-15 minutes
# Visit with alt account
cookies2 = {"COOKIE_NAME": "your alt auth cookie",
"cookieconsent_dismissed": "yes",
"PHPSESSID": "your alt php sess cookie"}
headers2 = {"Connection": "keep-alive",
"Upgrade-Insecure-Requests": "1",
"DNT": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36",
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "en-US;q=0.5,en;q=0.3"}
res2 = requests.get(profile, headers=headers2, cookies=cookie2, proxies=proxies)
if res2.status_code == 200:
print("Success!")
time.sleep(1*60*60*random.uniform(23.95,24.1)) # Sleeps for 23h 57m to 24h 6m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment