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

Quote:
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."
--moeee
_______________________________________________
Reply With Quote