Тёмный

Process to Build a Sports Betting Model End to End 

Wagered On Tilt
Подписаться 2,2 тыс.
Просмотров 14 тыс.
50% 1

This is a walk through of my process on how I collect, scrub, prep, and model my data for any sport. Now I have used this process
for NBA, NFL, MLB, and Soccer. This is the reason it works so well is that the process is always consistent, and can just plug and chug
when it comes to the information you are pulling down.
In the process I will walk through how I collect data ID's that I will need to pull down more in depth information on players for the NFL
and how I will then prep another Python Scraper to fetch this more granular data.
In doing so, I can the scrub the data to prep it for use in a sports betting model within Python or excel.
Once I have the data scrubbed and prepped to use the points of information I need, I will then build the Python model I want to test or use.
Once I have collected the data, I do not need to refetch until I believe there is more updated information on more recent games. This is what makes the process
work so well, is then I can really focus on the model portion, and test my theories.
As always, this sprots betting model wont let your wagers beat a sports book, but it is a good start on foundational methods to help you become a more focused
and methodical sports bettor.
If you have any questions on the process or what I did, feel free to leave a comment and I can try to
0:00 - Intro
0:55 - Find the data you want to scrape and prepare Python for betting model
4:34 - Set Scrape down ID's for players using Python for betting model
7:44 - Clean up the HTML you scraped
14:20 - Prepare CSV file of records you want to scrape
15:50 - Build your player scraper
30:31 - Scrub the data you have scraped
44:20 - Create Simple Averages Model for Tight Tend TD's
Music by Joystock - www.joystock.org

Опубликовано:

 

2 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 52   
@StertyOG
@StertyOG 9 месяцев назад
Nice video! currently learning python atm and this really helps! Keep it up!
@wageredontilt1649
@wageredontilt1649 9 месяцев назад
Glad you are finding it useful! Let me know if you have any questions.
@peterk6215
@peterk6215 11 месяцев назад
Thanks T. Great video!
@wageredontilt1649
@wageredontilt1649 11 месяцев назад
Let me know if ya have any questions!
@JeremyConn27
@JeremyConn27 11 месяцев назад
Great video!
@wageredontilt1649
@wageredontilt1649 11 месяцев назад
Let me know if ya have any questions!
@MVPTC
@MVPTC 6 месяцев назад
I’ve always been interested in this stuff I’m going to give it a try.. wish me luck I’m fairly new to coding and only did one little project before months ago
@wageredontilt1649
@wageredontilt1649 6 месяцев назад
Tbh, this stuff will come to you quickly. I only started Python in Aprilish if 2023. If you have any questions let me know
@basiliszag
@basiliszag 11 месяцев назад
🎉
@jd200600
@jd200600 11 месяцев назад
Great stuff, T! Question for you. When I run the scraper, leading up to scrubbing, I see the file create in my project folder. I see the info pulling as you do when the project runs, however, there is no data in my csv file to scrape. Any ideas as to what I am doing wrong?
@wageredontilt1649
@wageredontilt1649 11 месяцев назад
Most likely it is not seeing the table or object you pointed the scraper at. So it would print the url it’s going to hit, try to find a table or object defined, can’t and moves on. It’s moving on due to the try and except statement. You could test to be sure you’re pointing at correct data by printing the object as shown in the print of the table to collect IDs. If it doesn’t print it doesn’t see it, it could also be the table structure, which may require modifying the scraper.
@wageredontilt1649
@wageredontilt1649 11 месяцев назад
Have you had any progress on this?
@jd200600
@jd200600 11 месяцев назад
@@wageredontilt1649 Hey T! Thank you for checking in. I just got back home to try it, and it does now appear to be working. For some reason, I could not get it work to work on the advanced page but it worked when I referenced back to the regular game log. Thank you for the tutorials!
@wageredontilt1649
@wageredontilt1649 11 месяцев назад
@@jd200600 glad it’s working! Let me know if there are any future issues!
@jd200600
@jd200600 11 месяцев назад
@@wageredontilt1649 Will do and thank you!
@briansacha51
@briansacha51 10 месяцев назад
Any place on the net where you can get code and it spits a model out for you?
@wageredontilt1649
@wageredontilt1649 10 месяцев назад
Do you mean a website that makes a model for you or a site that is a model and returns results?
@briansacha51
@briansacha51 10 месяцев назад
@@wageredontilt1649 makes a model
@wageredontilt1649
@wageredontilt1649 10 месяцев назад
None that I know of, as there are hundreds of ways to make a model using differing approaches and differing stats. If you find a site claiming to build you a model, I would be cautious as I doubt the strength would be present. Often models will only survive for so long with out tweaks along the way. I don't know if a site would have the ability to adapt. Also, if it is pulling from a library of models to provide you, most likely those models have already been tapped out for any edge it would provide.
@peaky9771
@peaky9771 11 месяцев назад
Anything on esports like csgo? Lots of edge in that especially on DFS apps
@wageredontilt1649
@wageredontilt1649 11 месяцев назад
I had looked into it in the past, however at books the edges aren’t as good, and some of the data being reported can be suspect. If you know of a good eSports data site, I’d be willing to look back into it.
@peaky9771
@peaky9771 11 месяцев назад
@@wageredontilt1649 I’ve seen people have pretty good models based off adding pinnacle odds for how close a game should be as props like headshots and kills are very round dependent while adding their projection to cross reference multiple DFS app lines like prize picks, underdog, SportsBattle, Jock MKT, etc.
@wageredontilt1649
@wageredontilt1649 11 месяцев назад
I’ll probably take a look then into some of the eSports stuff in the next month or so. Need some time to think through how I’d tackle it.
@peaky9771
@peaky9771 11 месяцев назад
@@wageredontilt1649 also important to factor in map pools for teams as they vote on which maps to play or ban and that factors in to how well they play and how close the games are
@wageredontilt1649
@wageredontilt1649 11 месяцев назад
For sure. I was using that in some of the initial modeling I was doing, but to actually fetch the data I need was a bit cumbersome. Know of any sites good for this data I can try to scrape?
@Actapguru
@Actapguru Месяц назад
I literally used the same exact code on python as you did, and got the same output, but when I selected all and copied and pasted it into excel, it didn't turn into a table and instead stayed as code. What did I do wrong? Thank you!
@wageredontilt1649
@wageredontilt1649 Месяц назад
So, usually once you paste it in for the first time, you will need to modify the data to match a table, however that setup should continue to exist. Did it at least paste in as some readable values, or is it all in column A with html?
@Actapguru
@Actapguru Месяц назад
@@wageredontilt1649It was just html in column a. So weird. I also switched the settings to split by column and it didn’t do anything. Thank you for responding!
@wageredontilt1649
@wageredontilt1649 Месяц назад
@@Actapguru That is odd. The only other thing I would suggest is maybe point your excel to a website, and import html. Then give it a try by copying and pasting in the html from python. Not sure why it is only wanting to display it as html. The only other thing I can think is that the html is incomplete so it doesn't know how to render.
@Actapguru
@Actapguru Месяц назад
@@wageredontilt1649 Ok thank you! What python software do you use? i use pycharm so i’m wondering if it delivers the html differently
@wageredontilt1649
@wageredontilt1649 Месяц назад
It’s an excel issue, I use the same Pycharm. Some have had issues with it before as well
@yessirski7868
@yessirski7868 3 месяца назад
do you have a git repo for this?
@wageredontilt1649
@wageredontilt1649 3 месяца назад
No, I no longer offer a git for this, I had too many ppl asking for customized code, or passing code off as their own.
@NicholasRotondo
@NicholasRotondo 4 месяца назад
how did you just copy and paste like that? mine doesn't translate as well
@wageredontilt1649
@wageredontilt1649 4 месяца назад
Sorry, been a while since I made this video. Which part of the video are you referring to where I copy paste? I can take a look at that part and give ya any help I can.
@fremont45701
@fremont45701 3 месяца назад
@@wageredontilt1649 My guess is he is talking about around 7:35, I came to the comments for the same question. It's pasting exactly how it looks in the output from print(players) **Edit** I got on my other laptop, running Windows instead of Ubuntu, and it worked on Excel, it just doesn't work on Google Sheets or LibreOffice Calc
@aaronmichael8305
@aaronmichael8305 3 месяца назад
@@wageredontilt1649 I'm having the same problem. For me it's the initial copy and paste after you run the very first formula for passing. I don't have excel, just google sheets, and when i paste it in it's just the raw html taken from the terminal.
@aaronmichael8305
@aaronmichael8305 3 месяца назад
@@wageredontilt1649 i'm having a similar problem copying the passing stats at the beginning of the video from the interpreter to the excel sheet. it doesn't format automatically into a neat table. do you by chance know what the fix is?
@wageredontilt1649
@wageredontilt1649 3 месяца назад
Ah, I see what you mean. Thank you for the update as well! I believe to get it to work in Google Sheets, you can set column A to be Split to Column, and when you put the data in, it should split it. Google Sheets often updates and break workflows like that unfortunately.
@jefffriend1306
@jefffriend1306 2 месяца назад
I can't read.
@wageredontilt1649
@wageredontilt1649 2 месяца назад
Sorry it didn’t go into enough detail on the model building for you. What aspect of the model building piece were you hoping to find that wasn’t covered?
@jefffriend1306
@jefffriend1306 2 месяца назад
@@wageredontilt1649 Sorry I miss read the Title. Changed my comment.
@wageredontilt1649
@wageredontilt1649 2 месяца назад
@@jefffriend1306 ​ @jefffriend1306 Okay, thank you for the reply back! If there is anything specific that you were hoping to see on modeling, or sports betting that you don't see in any of my content, please let me know. I can try and work something up.
@jefffriend1306
@jefffriend1306 2 месяца назад
@@wageredontilt1649 right now I am trying to learn all I can about differnet models for different NFL stats. I really know nothing about any of it. Thanks for the reply!
@superfreiheit1
@superfreiheit1 9 месяцев назад
Can you please increase resolution and do not use black background its hard to read
@pumpedupottis679
@pumpedupottis679 25 дней назад
Hello, when trying to run my code just as you did 30:10, i get an Error response: File "parsers.pyx", line 574, in pandas._libs.parsers.TextReader.__cinit__ File "parsers.pyx", line 663, in pandas._libs.parsers.TextReader._get_header File "parsers.pyx", line 874, in pandas._libs.parsers.TextReader._tokenize_rows File "parsers.pyx", line 891, in pandas._libs.parsers.TextReader._check_tokenize_status File "parsers.pyx", line 2053, in pandas._libs.parsers.raise_parser_error File "", line 322, in decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 262: invalid continuation byte Do you have any idea how to fix it? It would be really appreciated as Ive already been trying ChatGPT to help me. Cool video btw!
@wageredontilt1649
@wageredontilt1649 25 дней назад
The issue is with the format of the text/values in the file you have. They must have some kind of special charter. Often this can happen with player names. You can either clean up the values in the file, or use additional code to tell it to ignore the issues. I can get the line of code you’d need in a day, I need to grab from one of my other models.
@wageredontilt1649
@wageredontilt1649 24 дня назад
Okay, so for the file you are importing, I would add ", encoding="ISO-8859-1" " That should help with the encoding issue.
Далее
How to Build Power Ratings for Any Sport
37:03
Просмотров 41 тыс.
Make An MLB Betting Model In GoogleSheets | How To
25:37
Excel Making a Model on League Averages
22:59
PREDICT NBA Games With Probability | Excel Tutorial
51:08