Cheers Dallas

aha - you switched it round - nice one... will have a think about it..sniffer66 wrote: ↑Thu Jan 06, 2022 1:04 pm
Sionas, I think I've gone a long way, if not 100% of the way to solving the name matching issue.
Not sure what your coding is like but hopefully you can follow, using the SofaScore code I've already posted as an example. I got the idea from another post earlier today
The issue is that it's very hard to do any pattern based matching in Guardian, but easier to do in code. So, I had the idea to extract the current market name using an "Export data from CSV" rule, every x seconds. That gives you the current market name alongside any set SV's
By reading the exported CSV into my script as an array, or array of arrays, I can then do some decent string comparison checking against the market name string and pass SV values for that exact market name back into Guardian using my existing "Import data from CSV" rule
The beauty of doing it this way is you are passing back the EXACT market\selection name that BF is using, plus you only need to query external stats\data for markets your BAF is applied to, all other scraped\queried data can be ignored as it's not needed
Hope that makes sense![]()
There was an U19 game with the same teams running earlier so it may have picked up the matching names. It's not 100% foolproof due to the naming issue we've discussed previouslyasaele wrote: ↑Sun Jan 09, 2022 11:11 amRight now the script finds a wrong value for the home score in the game Konyaspor - Sivasspor.
It finds 1 homegoal throgh the API, while the correct one (and also the one showing on sofascore.com) is 0.
This seems to be an error in the sofascore API, or can it be something I have done wrong?
In the first case, anyone knows the error rate?
Absolutely brilliant job Stu. Collect that data and it will present you with worthy trades.sniffer66 wrote: ↑Wed Jan 12, 2022 3:50 pmUnsure if this will amount to anything but a rework of the script now logs out all the available stats and momentum data every time a goal is scored. Unfortunately the historical API data doesnt capture goal times so forced to capture in real time.
A few weeks capturing though and might have aggregated data worth triggering an entry for...
Capture.JPG
Interesting. Is this output from betangel (a new version of the rules file), or are you doing this directly in (a new version) of the script?
Once again this is great stuff!
Bear with me mate. As per your pm, I'm just crash testing the feedback loop from the csv output before I post it up. Can definitely do cards and times. Once I know it has no errors I'll put it up hereasaele wrote: ↑Thu Feb 03, 2022 10:18 amOnce again this is great stuff!
Wondering if the inplay time is also possible to extract from the Sofascore API? In that case it would be very helpful, and solve the problem of having the correct inplay time after halftime. It is available right next to the momentum graph visually so probably accessible through the API as well?
Another nice addition would be red (and yellow) cards per team if available?
Is there a place you can find the available fields in the API? In that case I could check and change the script myself