invitro
New member
- May 4, 2012
- 2,337
- 0
- Thread starter
- #401
Ok, I see this thread....
and I am equal parts amazed and horrified, and I think it may be the most amazing thread I've yet read on this forum.
- OMG..... our server but thanks for not destroying it.
I would have to ask ....
Wowee, the LAW finally caught me...
No. It is almost certainly more work than you think to duplicate this with the little tidbits like glitched-score ignoring. I say "no" because there are some things you could do that would help greatly for hopefully tiny bits of work! See below...I don't have a lot of bandwidth to put into this, definitely not as much as Invitro, but perhaps to save you guys some work and to save our server we should be able to create a Top 40 or Top 100 users list on the website modeled after Invitro's approach or something similar, which would update once a week. Let me know if this is a good plan.
I don't like to overload servers. I was a webmaster / databasemaster / serveradmin for some years myself.I am FROWNING on the method (that server runs some fairly critical operations) but I like the goal.
The main reason the method takes so long is that your webpage can only show 10 scores at a time. If it showed 100 at a time, it would take 10 times less time.
The optimum solution for me would be to allow me to download the leaderboards as a single .csv file, through the web. No API needed and one export of the .csv daily, with the data being what they are now, *plus* the platform that the score was made on. (Many people including me think these rankings could be improved a good bit with platform data, which you can't get from the webpage.) Well, if you have the date/time the score was made/stored as a field, then that would potentially be useful too.As far as an API goes, I'd have to ask, although I would definitely prefer dumping 1000 records once or twice per table to 4 hrs of scraping. Let me know if you want me to ask, CAUTION: conversation may go like this:
ME: Hey can we make an API or an export function so anyone can download our leaderboard data en masse?
VP: Um, why?
ME: Well... [insert explanation of data scraping and server load]
VP: Just make it so that doesn't happen.
ME: Erkay.....
Of course, he may also say "Sure, go for it". Say the word and I'll venture to ask about it.
You could even just copy the raw database file to a web-accessible place if it didn't have anything sensitive... I'm sure there is a way to extract data from any non-encrypted database.
I would prefer that the data be available to everyone but if privacy is important you could slap a simple serverauth on the .csv URL and throw me (and certain other people) a username/passwd.
I hope there is a way to come to an easy solution that everyone likes. I will do what I can to continue these rankings up to but not including the point of making Farsight sore at me. I do thank you guys for not coming down on me or hiding the leaderboards. But I understand that you may want or need to stop the scraping of the data.
(I hope that is sensible... I don't have much time to post/edit now but wanted to reply ASAP.)
Last edited: