Sunderland 12.06 (07/01/21)
Wonder how the market will move on these two?
Greyhound Mystique
- wearthefoxhat
- Posts: 3220
- Joined: Sun Feb 18, 2018 9:55 am
You do not have the required permissions to view the files attached to this post.
quick question. don't do much re the greys (altho wierdly, i scrape the sportinglife data daily as part of a routine, but never use it [don't ask!!]wearthefoxhat wrote: ↑Thu Jan 07, 2021 11:14 amSunderland 12.06 (07/01/21)
Wonder how the market will move on these two?
AutIris.png
PoolCam.png
betfair.png
the question is, which website do the two market images above come from?? just interested to compare the data that I scrape compared to that..
- wearthefoxhat
- Posts: 3220
- Joined: Sun Feb 18, 2018 9:55 am
Racing Post 1st 2 - Form linesjimibt wrote: ↑Thu Jan 07, 2021 11:36 amquick question. don't do much re the greys (altho wierdly, i scrape the sportinglife data daily as part of a routine, but never use it [don't ask!!]wearthefoxhat wrote: ↑Thu Jan 07, 2021 11:14 amSunderland 12.06 (07/01/21)
Wonder how the market will move on these two?
AutIris.png
PoolCam.png
betfair.png
the question is, which website do the two market images above come from?? just interested to compare the data that I scrape compared to that..
3rd one - The odds are from another software (Betextrader)
Just add to this my own ratings for that race...
You do not have the required permissions to view the files attached to this post.
thanks... will take a lookwearthefoxhat wrote: ↑Thu Jan 07, 2021 11:47 amRacing Post 1st 2 - Form linesjimibt wrote: ↑Thu Jan 07, 2021 11:36 amquick question. don't do much re the greys (altho wierdly, i scrape the sportinglife data daily as part of a routine, but never use it [don't ask!!]wearthefoxhat wrote: ↑Thu Jan 07, 2021 11:14 amSunderland 12.06 (07/01/21)
Wonder how the market will move on these two?
AutIris.png
PoolCam.png
betfair.png
the question is, which website do the two market images above come from?? just interested to compare the data that I scrape compared to that..
3rd one - The odds are from another software (Betextrader)
Just add to this my own ratings for that race...
1206Odds.png
ok, just realised that i'm *aware* of the scrapes on this one (i go straight for the json, rather than scraping)..
https://greyhoundbet.racingpost.com/car ... tle%2Cform
cheers again
https://greyhoundbet.racingpost.com/car ... tle%2Cform
cheers again
Oh nice. Had no idea you could grab the JSON. Historical race data there as well. Cheers Jimjimibt wrote: ↑Thu Jan 07, 2021 11:53 amok, just realised that i'm *aware* of the scrapes on this one (i go straight for the json, rather than scraping)..
https://greyhoundbet.racingpost.com/car ... tle%2Cform
cheers again
Bugger, loads of work to do now lol
*HINT* - most of the race sites have a *private* api that isn't exposed but is easily discoverable. why battle with scraping from html (classnames/id's etc) when you can just load up an object from json and party on that!sniffer66 wrote: ↑Thu Jan 07, 2021 12:20 pmOh nice. Had no idea you could grab the JSON. Historical race data there as well. Cheers Jimjimibt wrote: ↑Thu Jan 07, 2021 11:53 amok, just realised that i'm *aware* of the scrapes on this one (i go straight for the json, rather than scraping)..
https://greyhoundbet.racingpost.com/car ... tle%2Cform
cheers again
Bugger, loads of work to do now lol
Exactly ! My scraping code is a nightmare, and any site change breaks it. Lovelyjimibt wrote: ↑Thu Jan 07, 2021 12:22 pm*HINT* - most of the race sites have a *private* api that isn't exposed but is easily discoverable. why battle with scraping from html (classnames/id's etc) when you can just load up an object from json and party on that!sniffer66 wrote: ↑Thu Jan 07, 2021 12:20 pmOh nice. Had no idea you could grab the JSON. Historical race data there as well. Cheers Jimjimibt wrote: ↑Thu Jan 07, 2021 11:53 amok, just realised that i'm *aware* of the scrapes on this one (i go straight for the json, rather than scraping)..
https://greyhoundbet.racingpost.com/car ... tle%2Cform
cheers again
Bugger, loads of work to do now lol
Any thoughts why do they allow this, jimibt?
tbh -it's not officially exposed. it's a caaveat emptor scenario. i've used it discretely for a few years but i make sure to rate limit the calls and only do it once a day. i guess your IP may get blocked if you were to go apesh!t on it and called it indescriminately.
-
- Posts: 3140
- Joined: Sun Jan 31, 2010 8:06 pm
My Sportinglife scraper went yesterday for some reason so simply set it to grab the json data block in the pages now, makes life much easier if you get the data rather than rendered page. I used to have the sportinglife API address for football but recently switched PC's and the cats smashed the screen on the old laptop I usedsniffer66 wrote: ↑Thu Jan 07, 2021 12:20 pmOh nice. Had no idea you could grab the JSON. Historical race data there as well. Cheers Jimjimibt wrote: ↑Thu Jan 07, 2021 11:53 amok, just realised that i'm *aware* of the scrapes on this one (i go straight for the json, rather than scraping)..
https://greyhoundbet.racingpost.com/car ... tle%2Cform
cheers again
Bugger, loads of work to do now lol
SB -the two urls you need are:spreadbetting wrote: ↑Thu Jan 07, 2021 1:55 pmMy Sportinglife scraper went yesterday for some reason so simply set it to grab the json data block in the pages now, makes life much easier if you get the data rather than rendered page. I used to have the sportinglife API address for football but recently switched PC's and the cats smashed the screen on the old laptop I usedsniffer66 wrote: ↑Thu Jan 07, 2021 12:20 pmOh nice. Had no idea you could grab the JSON. Historical race data there as well. Cheers Jimjimibt wrote: ↑Thu Jan 07, 2021 11:53 amok, just realised that i'm *aware* of the scrapes on this one (i go straight for the json, rather than scraping)..
https://greyhoundbet.racingpost.com/car ... tle%2Cform
cheers again
Bugger, loads of work to do now lol
1. top level matches
https://www.sportinglife.com/api/footba ... 2021-01-07
2. Match detail derived from id's in above (107964 in the example below)
https://www.sportinglife.com/api/footba ... ail/107964
and/or
https://www.sportinglife.com/api/footba ... types=true
-
- Posts: 3140
- Joined: Sun Jan 31, 2010 8:06 pm
Thanks Jim, makes life so much easier, I think I'd got them before from one of your posts, too. Do you know any with the results, I was specifically looking to get goal time data, or is that in the match_events url. I'll keep a track of those url as seems the match just started
yeah, i like to use (where possible), the direct api calls, but definitely it's fairly consistant on the SL pages where you can pick up the same json after the <script id="__NEXT_DATA__" type="application/json"> tag...spreadbetting wrote: ↑Thu Jan 07, 2021 3:14 pmThanks Jim, makes life so much easier, I think I'd got them before from one of your posts, too. Do you know any with the results, I was specifically looking to get goal time data, or is that in the match_events url.
-
- Posts: 3140
- Joined: Sun Jan 31, 2010 8:06 pm
Yep I had to recode my scrapers to do that yesterday as they seemed to have changed things, luckily seems the pages all follow the same format so if anything the forced change has made my future scraping easier
Code: Select all
data =json.loads( soup.find('script', type='application/json').string)