The client is offline due to RuneScape update. You may see instance errors but this is due to the update and not actual instance errors. This should be resolved soon. Join our Discord for more information.

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
    
    
    


  • It appears the creation of rspeer_me no longer works. Has something changed?



  • @MadDev Was the ability to generate rspeer_me removed in a recent version?


  • Director

    @peithuvoofei said in Helpful script for goldfarmers:

    @MadDev Was the ability to generate rspeer_me removed in a recent version?

    No it was not, but that login route response in the code above isn't putting the right info in it.

    The response from /v2/user/login will return a json response with a token, you must write that token to the file, not the entire json response.


  • Director

    Also, this code is an infinite loop if you are never able to login? All this will do is get you rate limited if you spam it unlimited times.


 

49
Online

14.3k
Users

1.3k
Topics

17.6k
Posts