Ranking List API
Moderators: [nope] cartel, team nopesport
13 posts
• Page 1 of 1
Ranking List API
Is there an API for accessing the BO Ranking List or, to avoid me reinventing wheels, has someone written something to scrape the data? I'm just looking to automate the generation of some stats for our club on a regular basis.
- djc
- white
- Posts: 55
- Joined: Sun Jan 02, 2005 6:51 pm
- Location: Southampton
Re: Ranking List API
I think Ollie build a scraper for results rather than rankings at one stage but it looks like it is broken now: https://www.oobrien.com/stats/
-
rocky - [nope] cartel
- Posts: 2747
- Joined: Fri Oct 24, 2003 1:28 pm
- Location: SW
Re: Ranking List API
Cheers rocky - might have guessed Ollie would have had something! I'll get in touch with him and see if it can be resurrected/extended
- djc
- white
- Posts: 55
- Joined: Sun Jan 02, 2005 6:51 pm
- Location: Southampton
Re: Ranking List API
The embed button at the bottom of the rankings page has a JSON option linking to this kind of thing:
https://www.britishorienteering.org.uk/datafeed.php?pg=rankings&club=0&assoc=0&gender=&age=-1&paging=0
https://www.britishorienteering.org.uk/datafeed.php?pg=rankings&club=0&assoc=0&gender=&age=-1&paging=0
- Michael.A
- string
- Posts: 1
- Joined: Mon Oct 08, 2018 9:40 pm
Re: Ranking List API
Doh! Thanks Michael. I saw the button, just somehow assumed that it was going to give me something to stick in an iframe or some such.
- djc
- white
- Posts: 55
- Joined: Sun Jan 02, 2005 6:51 pm
- Location: Southampton
Re: Ranking List API
If I recall correctly, Ollie's results stats ceased working when BO changed the mechanism so historical points are continually recalculated, as a circumvention to the algorithm glitch which gradually inflates (or deflates, I can't remember which) points allocation over time (rather than fix the issue at source).
Ollie's mechanism had many useful features, including trend over time and runner comparisons.
Ollie's mechanism had many useful features, including trend over time and runner comparisons.
curro ergo sum
-
King Penguin - addict
- Posts: 1453
- Joined: Wed Sep 21, 2005 6:56 pm
- Location: Kendal
Re: Ranking List API
Are there any docs for the JSON API? It took me a while to work out that the member number that the example the Embed button generates is wrong and seemingly unrelated to the actual member you should use!
I can't get the "paging" attribute to do anything - I always get 25 results. For a member, guesswork showed that a "page" attribute could be used to page through the results but the same doesn't work for the rankings page so I'm currently stuck with just the first 25!
I can't get the "paging" attribute to do anything - I always get 25 results. For a member, guesswork showed that a "page" attribute could be used to page through the results but the same doesn't work for the rankings page so I'm currently stuck with just the first 25!
- djc
- white
- Posts: 55
- Joined: Sun Jan 02, 2005 6:51 pm
- Location: Southampton
Re: Ranking List API
and what determines if an event gets ranking points? The BO web site says it has to be a level A, B or C but results on their website are categorised under Local, Regional or National. Some Regional events seem to have ranking points and some do not.
- rado
- string
- Posts: 19
- Joined: Fri Oct 31, 2008 10:03 pm
Re: Ranking List API
Level A = "Major" (JK, Britsh Champs and the like)
Level B = "National"
Level C = "Regional"
Level D = "Local"
Normal interval start courses (not mass start, score or relays) at all level A, B & C events should be ranked so long as there are sufficient ranked finishers for the results to be statistically reliable.
Level B = "National"
Level C = "Regional"
Level D = "Local"
Normal interval start courses (not mass start, score or relays) at all level A, B & C events should be ranked so long as there are sufficient ranked finishers for the results to be statistically reliable.
- pete.owens
- diehard
- Posts: 752
- Joined: Tue Jan 15, 2008 12:25 am
Re: Ranking List API
rado wrote:and what determines if an event gets ranking points? The BO web site says it has to be a level A, B or C but results on their website are categorised under Local, Regional or National. Some Regional events seem to have ranking points and some do not.
A bit of consistency in terminology would be nice! (Personally, I prefer local/regional/national/major on a website as those terms at least have some meaning to non-orienteers.) I notice that the results page also includes "international", although there seem to be no events in that category (presumably it would be things like WOC, which I guess would also be Level A).
- roadrunner
- addict
- Posts: 1059
- Joined: Fri Sep 02, 2005 8:30 pm
Re: Ranking List API
roadrunner wrote:A bit of consistency in terminology would be nice! (Personally, I prefer local/regional/national/major on a website as those terms at least have some meaning to non-orienteers.)
Indeed, which is why the new names were introduced. The trouble is that is bound to introduce inconsistency as there are many documents and rules that refer to the old names. Hunting through them all to search and correct for every reference to old event levels would be a big job.
- pete.owens
- diehard
- Posts: 752
- Joined: Tue Jan 15, 2008 12:25 am
Re: Ranking List API
djc wrote:Are there any docs for the JSON API? It took me a while to work out that the member number that the example the Embed button generates is wrong and seemingly unrelated to the actual member you should use!
I can't get the "paging" attribute to do anything - I always get 25 results. For a member, guesswork showed that a "page" attribute could be used to page through the results but the same doesn't work for the rankings page so I'm currently stuck with just the first 25!
Just about to ask the same question for the same reason. I guess the answer is no (still!).
- srocmapper
- string
- Posts: 15
- Joined: Tue May 28, 2019 3:21 pm
Re: Ranking List API
By the way - had to use the html pages to get full list of rankings, json won't do more than one page. Shame BO won't fix this stuff. I asked once but they didn't understand the question.
- srocmapper
- string
- Posts: 15
- Joined: Tue May 28, 2019 3:21 pm
13 posts
• Page 1 of 1
Who is online
Users browsing this forum: awk and 198 guests