Greyhound Mystique
- MemphisFlash
- Posts: 2335
- Joined: Fri May 16, 2014 10:12 pm
Once i've tested it on some horse races i'll put it on here
- MemphisFlash
- Posts: 2335
- Joined: Fri May 16, 2014 10:12 pm
Here is a little sheet that shows the Weight of Money for 9 selections, so it can be used on Australian and english greyhounds, as well as any Horse racing.
I have been demonstrating a strategy that this can come in useful for all night long, Obviously not going to give the strategy away but shouldn't be to hard for the smart ones to figure out.
Hope you find it helpful.
Merry Christmas.
I have been demonstrating a strategy that this can come in useful for all night long, Obviously not going to give the strategy away but shouldn't be to hard for the smart ones to figure out.
Hope you find it helpful.
Merry Christmas.
You do not have the required permissions to view the files attached to this post.
- Realrocknrolla
- Posts: 1910
- Joined: Fri Jun 05, 2020 7:15 pm
Did you lay Banjo Bobby?MemphisFlash wrote: ↑Thu Dec 17, 2020 11:35 pmHere is a little sheet that shows the Weight of Money for 9 selections, so it can be used on Australian and english greyhounds, as well as any Horse racing.
Capture.JPG
I have been demonstrating a strategy that this can come in useful for all night long, Obviously not going to give the strategy away but shouldn't be to hard for the smart ones to figure out.
Hope you find it helpful.
Weight of Money Charts for Greyhounds.xlsx
Merry Christmas.
- MemphisFlash
- Posts: 2335
- Joined: Fri May 16, 2014 10:12 pm
You do not have the required permissions to view the files attached to this post.
- The Silk Run
- Posts: 983
- Joined: Mon May 14, 2018 12:53 am
Well done MEMF. Concept to delivery ...
Stay safe
Minnie LAI
Stay safe
Minnie LAI
- MemphisFlash
- Posts: 2335
- Joined: Fri May 16, 2014 10:12 pm
i'm playing with it at min, might have an update to original sheet, trying to find sweet spot on weight of money before the labels apppear.
PeterLe wrote: ↑Mon Mar 09, 2020 11:32 amWhen i run the Python code i get an error ... Trap= link.find(class_="gh-racing-runner-cloth").get_text()spreadbetting wrote: ↑Wed Jan 22, 2020 3:42 pmSB Thanks for posting this code. Just run it and it looks good!Bog wrote: ↑Wed Jan 22, 2020 3:13 pmCode: Select all
import re import requests from bs4 import BeautifulSoup from requests_html import HTMLSession def extract_times(input): times_regex = re.compile(r'Best: (.....)sLast: (.....)s') best_times_regex = re.compile(r'Best: (.....)s') match = times_regex.search(input) best_match = best_times_regex.search(input) if match: if float(match.group(2)) < float(match.group(1)): return float(match.group(1)) else: return round((float(match.group(1))+float(match.group(2)))/2,2) if best_match: return float(best_match.group(1)) return 100 session = HTMLSession() baseUrl = "https://www.sportinglife.com" str="/greyhounds/racecards/20" res = requests.get("https://www.sportinglife.com/greyhounds/racecards") soup=BeautifulSoup(res.text,"html.parser") summary=soup.find_all("a", class_="") x=0 for link in soup.find_all('a'): link = link.get('href') if str in link: res = session.get(baseUrl+link) soup=BeautifulSoup(res.text,"html.parser") race = soup.find_all('h1')[1].get_text() distance =soup.find(class_='gh-racecard-summary-race-class gh-racecard-summary-always-open').get_text() summary=soup.find_all(class_="gh-racing-runner-key-info-container") Runners = dict() for link in summary: Trap= link.find(class_="gh-racing-runner-cloth").get_text() Name =re.sub(r'\(.*\)', '',link.find(class_="gh-racing-runner-greyhound-name").get_text()) Average_time = extract_times(link.find(class_="gh-racing-runner-greyhound-sub-info").get_text()) Runners[Average_time]= Trap+'. '+Name if bool(Runners) == True and ('OR' in distance or 'A' in distance): x = sorted(((k,v) for k,v in Runners.items())) if (x[1][0]-x[0][0]) >=0.1: timeDiff =round((x[1][0]-x[0][0]),2) print(f"{race},{x[0][1]}, class {distance}, time difference {timeDiff}")
(For anyone new to Python, I had to :
PIP Install request
PIP Install requests_html
From terminal to get it running
AttributeError: 'NoneType' object has no attribute 'get_text'
Im a newbie on python .... I looked at the site and it looks like the value isn't a number
is anyone able to help. google couldn't help me
- MemphisFlash
- Posts: 2335
- Joined: Fri May 16, 2014 10:12 pm
what is that code and what does it do?
-
- Posts: 3140
- Joined: Sun Jan 31, 2010 8:06 pm
I think it just grabbed the times from the sporting Life site in line with what archery was originally doing with the race times. Maybe they've changed the website layout if it no longer works as it was just scaping the pages and output a runner if it met the criteria.
The code and format etc is posted on page 21 of this thread, haven't run or looked at the code for ages as it wasn't a winner. Just stuck with my old bots for now.
The code and format etc is posted on page 21 of this thread, haven't run or looked at the code for ages as it wasn't a winner. Just stuck with my old bots for now.