Football Scores, In-Play Stats & Momentum via script, using an API. Version 2

sniffer66
Posts: 1808
Joined: Thu May 02, 2019 8:37 am

Euler wrote:
Sat Jan 28, 2023 11:52 am
Should be easier to push stuff into Bet Angel now thanks to the new API.
I had planned to update the code to do just that Peter. Passing all the SV's used via the API. It's having the time lol
climpies
Posts: 10
Joined: Mon Jan 13, 2020 9:49 am

Could someone help this village idiot get this up and running?

I've installed auto-it, added Json.au3 & binarycall.au3 to the includes directory.

Created c:\temp\csv-output directory.
Put SS_Fuzzy_V1.0 into the temp directory.
Downloaded SS LTD 2nd Half V1.1.baf & added it to guardian.

I run SS_Fuzzy_V1.0, but get a flashing red X and paused. Do i need to create the output csv's or should the script create them when run? Guardian log is full of file not found, which is not surprising as it's not there.
ija34
Posts: 92
Joined: Mon Jun 27, 2022 7:51 pm

Doesn't seem to be working on mine. I tried the original file which worked and was creating the output file then downloaded the updated version, set it to run but it's just saying Running and then underneath says setting Hotkeys. It's not coming up with anything underneath or creating the output .csv file.

Any one know why this might be?
spherelance
Posts: 5
Joined: Wed Oct 19, 2022 1:00 am

Hi,

I'm incredibly confused due to having to hop around different threads (not moaning but can't the OP be amended with the relevant file download links?)

Can't find the SS_Fuzzy au3 file, got the two utility au3 files. Also not sure which baf file to use.

In my defence I have long covid and "enjoying" brain fog so fairly easy to confuse!
sniffer66
Posts: 1808
Joined: Thu May 02, 2019 8:37 am

spherelance wrote:
Fri Jan 05, 2024 9:37 am
Hi,

I'm incredibly confused due to having to hop around different threads (not moaning but can't the OP be amended with the relevant file download links?)

Can't find the SS_Fuzzy au3 file, got the two utility au3 files. Also not sure which baf file to use.

In my defence I have long covid and "enjoying" brain fog so fairly easy to confuse!
Sorry about that. By the time I went back to the OP to edit with the changes so they all appeared in the 1st post, it was too old for me to edit.

Looks like I deleted SS_Fuzzy_V1.0.au3 by mistake. Its back on my Google Drive now in the same location as the other 2 files
sIGNAL
Posts: 104
Joined: Sun Aug 06, 2023 5:32 am

sniffer66 wrote:
Fri Jan 05, 2024 11:52 am
spherelance wrote:
Fri Jan 05, 2024 9:37 am
Hi,

I'm incredibly confused due to having to hop around different threads (not moaning but can't the OP be amended with the relevant file download links?)

Can't find the SS_Fuzzy au3 file, got the two utility au3 files. Also not sure which baf file to use.

In my defence I have long covid and "enjoying" brain fog so fairly easy to confuse!
Sorry about that. By the time I went back to the OP to edit with the changes so they all appeared in the 1st post, it was too old for me to edit.

Looks like I deleted SS_Fuzzy_V1.0.au3 by mistake. Its back on my Google Drive now in the same location as the other 2 files

Ive followed all instructions but get the following line in scite when i run the script but nothing else....
>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" /ErrorStdOut "C:\temp\SS_Fuzzy_V1.0.au3"

Is this all correct or an error and if an error do you know where I am going wrong ?

Edit: i pasted the code from the orginal thread into a new file and ran that and it seems to be working. I can now see a time stamp every 30 secs in scite and the csv files are updating but its creating the old file sofascore.csv

from what i read that code was corrupt and was replaced with the new SS_Fuzzy_V1.0.au3 file which when i run does nothing ?
sniffer66
Posts: 1808
Joined: Thu May 02, 2019 8:37 am

sIGNAL wrote:
Thu Jan 25, 2024 7:13 am
sniffer66 wrote:
Fri Jan 05, 2024 11:52 am
spherelance wrote:
Fri Jan 05, 2024 9:37 am
Hi,

I'm incredibly confused due to having to hop around different threads (not moaning but can't the OP be amended with the relevant file download links?)

Can't find the SS_Fuzzy au3 file, got the two utility au3 files. Also not sure which baf file to use.

In my defence I have long covid and "enjoying" brain fog so fairly easy to confuse!
Sorry about that. By the time I went back to the OP to edit with the changes so they all appeared in the 1st post, it was too old for me to edit.

Looks like I deleted SS_Fuzzy_V1.0.au3 by mistake. Its back on my Google Drive now in the same location as the other 2 files

Ive followed all instructions but get the following line in scite when i run the script but nothing else....
>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" /ErrorStdOut "C:\temp\SS_Fuzzy_V1.0.au3"

Is this all correct or an error and if an error do you know where I am going wrong ?

Edit: i pasted the code from the orginal thread into a new file and ran that and it seems to be working. I can now see a time stamp every 30 secs in scite and the csv files are updating but its creating the old file sofascore.csv

from what i read that code was corrupt and was replaced with the new SS_Fuzzy_V1.0.au3 file which when i run does nothing ?
Pm me. I have a new version that uses the BA API. I'll get you working
sIGNAL
Posts: 104
Joined: Sun Aug 06, 2023 5:32 am

sniffer66 wrote:
Thu Jan 25, 2024 3:22 pm
sIGNAL wrote:
Thu Jan 25, 2024 7:13 am
sniffer66 wrote:
Fri Jan 05, 2024 11:52 am


Sorry about that. By the time I went back to the OP to edit with the changes so they all appeared in the 1st post, it was too old for me to edit.

Looks like I deleted SS_Fuzzy_V1.0.au3 by mistake. Its back on my Google Drive now in the same location as the other 2 files

Ive followed all instructions but get the following line in scite when i run the script but nothing else....
>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" /ErrorStdOut "C:\temp\SS_Fuzzy_V1.0.au3"

Is this all correct or an error and if an error do you know where I am going wrong ?

Edit: i pasted the code from the orginal thread into a new file and ran that and it seems to be working. I can now see a time stamp every 30 secs in scite and the csv files are updating but its creating the old file sofascore.csv

from what i read that code was corrupt and was replaced with the new SS_Fuzzy_V1.0.au3 file which when i run does nothing ?
Pm me. I have a new version that uses the BA API. I'll get you working
Thanks for getting back to. PM sent.
Taff15
Posts: 25
Joined: Thu May 26, 2022 9:13 pm

I really do like the possibilities of this, and appreciate the work that has gone into it.....however.....I am having trouble getting it running correctly, and as I try to trouble shoot it based on available info I am getting confused due to the various threads and associated pages.

Would it be too much to ask if somebody could kindly put the most relevant info/instructions/files into one thread/post. along with some potential troubleshooting FAQs.

Please understand this is no criticism, its mainly due to my lack of being able to follow the various threads with various info... :D ;)
sniffer66
Posts: 1808
Joined: Thu May 02, 2019 8:37 am

Unfortunately, this is dead in the water now. I have a new version that uses the BA API, but I think they have gotten wise to automated use of their API. A few weeks ago they started garbling the data if a particular source and header wasn't used. I managed to get around that by using a sniffer to replicate the header\TCP info that they were expecting, but over the weekend even that stopped working. I guess they detected my code again and put something else in place to block it.

Annoying for me, as I was on to something using the in-play data :(
eightbo
Posts: 2263
Joined: Sun May 17, 2015 8:19 pm

sniffer66 wrote:
Mon May 13, 2024 3:39 pm
Unfortunately, this is dead in the water now. I have a new version that uses the BA API, but I think they have gotten wise to automated use of their API. A few weeks ago they started garbling the data if a particular source and header wasn't used. I managed to get around that by using a sniffer to replicate the header\TCP info that they were expecting, but over the weekend even that stopped working. I guess they detected my code again and put something else in place to block it.

Annoying for me, as I was on to something using the in-play data :(
One sniffer, or 66? ;)

How's it going?
Do you have a data source now for football games? If not I can take a look soon, but we need a good information source.

A lot of the bookies provide play by play info, too.

Having goal, dangerous attack, goal kick, etc. in BA would be super useful.

I thought about using OCR (img to text) and a bit of logic then pass data to BA via API but that'll only work for as many games as you can bring up, and it'd only be semi-automated so far from perfect solution
sniffer66
Posts: 1808
Joined: Thu May 02, 2019 8:37 am

eightbo wrote:
Fri Jul 12, 2024 2:30 am
sniffer66 wrote:
Mon May 13, 2024 3:39 pm
Unfortunately, this is dead in the water now. I have a new version that uses the BA API, but I think they have gotten wise to automated use of their API. A few weeks ago they started garbling the data if a particular source and header wasn't used. I managed to get around that by using a sniffer to replicate the header\TCP info that they were expecting, but over the weekend even that stopped working. I guess they detected my code again and put something else in place to block it.

Annoying for me, as I was on to something using the in-play data :(
One sniffer, or 66? ;)

How's it going?
Do you have a data source now for football games? If not I can take a look soon, but we need a good information source.

A lot of the bookies provide play by play info, too.

Having goal, dangerous attack, goal kick, etc. in BA would be super useful.

I thought about using OCR (img to text) and a bit of logic then pass data to BA via API but that'll only work for as many games as you can bring up, and it'd only be semi-automated so far from perfect solution
Hi mate. Not had a look for a while but I'm pretty sure you'd need an API for speed of updates, plus decoding the JSON is so much more reliable than OCR. Straight web scraping is a possibility but it means cycling through pages of data each loop (as its usually one match per page), and it's unreliable if the site update the page.
I did look at a few paid API's that have similar or richer data than Sofascore, and think that might be the way to go long term
eightbo
Posts: 2263
Joined: Sun May 17, 2015 8:19 pm

sniffer66 wrote:
Wed Jul 17, 2024 2:50 pm
...Straight web scraping is a possibility but it means cycling through pages of data each loop (as its usually one match per page), and it's unreliable if the site update the page.
I did look at a few paid API's that have similar or richer data than Sofascore, and think that might be the way to go long term
Mucho aprecio for the reply. Can see pot. issue with multiple pages, but depending on execution time per cycle, could just output data to a single file for reference in BA. Paid API fine too but in either case data shouldn't be too delayed. Will have a go in upcoming weeks.
betmoneybet
Posts: 36
Joined: Sat Dec 19, 2015 6:38 pm

sniffer66 wrote:
Mon May 13, 2024 3:39 pm
Unfortunately, this is dead in the water now. I have a new version that uses the BA API, but I think they have gotten wise to automated use of their API. A few weeks ago they started garbling the data if a particular source and header wasn't used. I managed to get around that by using a sniffer to replicate the header\TCP info that they were expecting, but over the weekend even that stopped working. I guess they detected my code again and put something else in place to block it.

Annoying for me, as I was on to something using the in-play data :(
Just read though this thread and would be amazing to have set up for the new season.
Is this version set up for the BetAngel API?
Are you still having issues with SofaScores API?
Thanks
sniffer66
Posts: 1808
Joined: Thu May 02, 2019 8:37 am

betmoneybet wrote:
Fri Jul 19, 2024 7:29 pm
sniffer66 wrote:
Mon May 13, 2024 3:39 pm
Unfortunately, this is dead in the water now. I have a new version that uses the BA API, but I think they have gotten wise to automated use of their API. A few weeks ago they started garbling the data if a particular source and header wasn't used. I managed to get around that by using a sniffer to replicate the header\TCP info that they were expecting, but over the weekend even that stopped working. I guess they detected my code again and put something else in place to block it.

Annoying for me, as I was on to something using the in-play data :(
Just read though this thread and would be amazing to have set up for the new season.
Is this version set up for the BetAngel API?
Are you still having issues with SofaScores API?
Thanks
The version in this thread used Stored Values, passed to BA via an import CSV. The latest version I was testing passed the values directly to each selection via the BA API and was a definite improvement. I also ported it to Python, which was a lot faster

Unfortunately, since Sofascore started garbling the data for anything but an internal request i.e from within their own site, it's not been working.
I'll keep trying to come up with an alternative, and if I do will post it up
Post Reply

Return to “Bet Angel Automation - Football”