View Single Post
Old 25th September 2020, 07:28 AM
Shaun Shaun is offline
Join Date: Jan 1970
Location: Western Australia
Posts: 3,530

Originally Posted by walkermac
Quick poke:

You can get the remaining races from the dog's history by adding /full-form?page=1&profile=true to the end of the dog's URL (i.e. you get the latest 5 runs from the URL you posted and the prior ones from that page; there may be multiple pages though - not sure how many records it loads per page).

You could get the box stats by scraping the page HTML into a string, discarding everything to the left of 'box history', and then parsing for the data you want. It's always going to be a grid of the same size and, looking at the HTML code, there's various repeating tags and labels (e.g. "box-history__box table__cell--tight") that you can use to chop the string up to get at the figures you need. (if you were talking about the box data in the history: same deal, more or less: search for "rug_" in the areas of the HTML you're interested in)

Good one, i went back to have a look how i missed that, my html code reading is a bit lame but i can see the address in the button.
One Drive Chrome browser doesn't work

"If the corporates are treating you poorly , just go elsewhere."
"If they need you , they will soon find out."
"If you need them , you will soon find out."
Reply With Quote