Helpful script for goldfarmers



  • Hey, made a script that automatically sets up RSPeer on a new VPS. Personally using this for myself since I'm running multiple instances.

    Thought it would be useful for my fellow goldfarmers.

    REQUIREMENTS
    Python 3x
    Pip
    Python Requests module

    SOURCE CODE

    import requests
    import time
    
    print('Downloading the latest RSPeer client..')
    
    client = "http://api.rspeer.org/v2/bot/currentJar"
    g = requests.get(client)
    
    filename = client.split('/') [-1]
    
    with open(filename, 'wb') as out_file:
        out_file.write(g.content)
    
    print("Download completed.")
    
    time.sleep(1)
    
    email = raw_input("RSPeer email: ")
    password = raw_input("RSPeer password: ")
    p = requests.post("https://api.rspeer.org/v2/user/login", json={"Email" : email, "Password" : password})
    
    while True:
        if p.status_code != 200:
            print("Login failed!")
            time.sleep(1)
            email = raw_input("RSPeer email: ")
            password = raw_input("RSPeer password: ")
            p = requests.post("https://api.rspeer.org/v2/user/login", json={"Email" : email, "Password" : password})
        if p.status_code == 200:
            file = open("rspeer_me", "w")
            file.write(p.text)
            time.sleep(1)
            print("All done!")
            break
    
    
    

 

113
Online

7.4k
Users

786
Topics

9.4k
Posts