• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Players table for statistics (A unusual request)

Lakkir

Active Member
Joined
Jan 6, 2009
Messages
29
Reaction score
25
Location
Chile
I have to do a report for course in university called "Probability and statistics".
The topic I choose I'ts the players level and vocation to conclude which vocation level it's the fastest to level up and other things.

So I'm here with a simple request, ¿Can someone send me the players table of an rpg server with low rates?
It will only take a minute, It has to have like 500+ players, the more the best.

¡Thanks!
 
So you basically want us to gather all the data for you to do your work?

Sure.... Pay me and I will do it wtf
 
Then why are we fixing scripts, websites etc or just releasing feature content for these servers if they are not ours?
Because mostly you like it and it's so he can use it to entertain people with his server. Not for a good grade on school which only benefits him.
 
Because mostly you like it and it's so he can use it to entertain people with his server. Not for a good grade on school which only benefits him.
Yea but everything we release, fix, write etc is for the benefit of someone else's project, its one thing if you don't want to do it, like i could care less but lets not base the merit or reason on something it isn't.
 
I don't see many people benefiting from this data, and it's not that hard to get it. You can basically go and do it by hand if you don't know how to code.

But however I will spoon feed him:

Code:
import re
import urllib.request
from bs4 import BeautifulSoup
htmlrequest = urllib.request.urlopen

url = "http://www.fortera-global.net/?subtopic=highscores&list=%list%&page=%page%&vocation=%vocation%"
ulist = "experience"
vocations = [1, 8]
pages = 5
data = {x:[] for x in range(vocations[0], vocations[1]+1)}

templateurl = url.replace("%list%", ulist, 1)
for vocation in range(vocations[0], vocations[1]+1):
    for page in range(pages):
        tmpurl = templateurl.replace("%page%", str(page))
        tmpurl = tmpurl.replace("%vocation%", str(vocation))
        htmlresponse = htmlrequest(tmpurl)
        if(htmlresponse):
             soup = BeautifulSoup(htmlresponse.read(), "html.parser")
             t = soup.body.find_all("tr", attrs={'bgcolor':re.compile('^#F1E0C6|^#D4C0A1')})
             if(len(t) > 0):
                 for tag in t:
                     level = tag.find("center")
                     name = tag.find("font")
                     if(level and name):
                         level = int(level.text)
                         name = name.text
                         data[vocation].append([name, level])
             else:
                 print("Failed to find data in: ", tmpurl)
        else:
            print("Failed to request data from: ", tmpurl)

strdata = ""
for i in range(vocations[0], vocations[1]+1):
    strdata = strdata + "Vocation " + str(i) + " : " + str(data[i]) + "\n\n"

f = open("out.txt", "w")
f.write(strdata)
f.truncate()
f.close()

Output: http://pastebin.com/raw/hb4S3n6V
(4000 players.)
Bigger List: http://pastebin.com/raw/Cvn090hy
(16000 players.)

Now you can use this data or modify the script and use another website or output it in another way.

Enjoy.

OBS: Its in python 3.4
 
Last edited:
Back
Top