One Hour One Life Forums

a multiplayer game of parenting and civilization building

You are not logged in.

#1 2018-11-26 03:09:15

themadhatterz
Member
Registered: 2018-11-23
Posts: 2

Life Data API

Been working diligently over the weekend to develop an API to the public life data.

My scraping technique is rudimentary right now and I will improve over time. But for the most part it gets all the characters.
Currently at 3.3 million recorded characters, miss a lot due to @ signs in email hashes and some Unicode characters here or there.
Also have some kinks to work out with loading latest data for characters that are alive when the data ends for a day.

Server moved to permanent locationhttps://themadhatter.org

Paths supported currently.

Like match search against all character names.
/ohol/api/v1/characters/name/<name>

Full match search against salted hash email. Unfortunately I cannot convert your email like the site does because I don't have access.
But if you confident you found yourself with the name search, the hash is returned to that response. Then you can turn around and use it here.
/ohol/api/v1/characters/email/<emailhash>

Single match server id and player id.
You either are blatantly throwing numbers at this, or you are sending info gathered to build families against already learned data from other routes.
/ohol/api/v1/characters/id/<serverid>/<playerid>

I intend to develop this much further, maybe some statistical pages and my own take on family tree!
Currently data is not scheduled to auto update until I understand how the txt files get published better.
So don't expect to see really recent characters.

All code is open source at https://github.com/themadhatterz/ohol_lifedata
Thanks!

Last edited by themadhatterz (2018-11-27 01:44:28)

Offline

#2 2018-12-13 20:30:57

pein
Member
Registered: 2018-03-31
Posts: 4,335

Re: Life Data API

bump


https://onehouronelife.com/forums/viewtopic.php?id=7986 livestock pens 4.0
https://onehouronelife.com/forums/viewtopic.php?id=4411 maxi guide

Playing OHOL optimally is like cosplaying a cactus: stand still and don't waste the water.

Offline

Board footer

Powered by FluxBB