Page 1 of 2

Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 1:38 pm
by duckyoubeavers
https://daslstats.herokuapp.com

I put up a site to track per 36 stats and a few advanced stats that i could calculate. I want to add a few more pages on here in the next couple days but wanted to get this out now

if anyone would like to see anything else on here i will try to put it in.

Re: Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 1:56 pm
by offtheheezy
wow this is incredible! thanks a lot for sharing :)

Re: Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 2:00 pm
by offtheheezy
does this pull live everytime? or does it just have players who's ever been on your squad?

Re: Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 2:06 pm
by duckyoubeavers
offtheheezy wrote:does this pull live everytime? or does it just have players who's ever been on your squad?
it just gets players who have played for you this season. and i will grab the new stats after every sim

Re: Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 2:07 pm
by offtheheezy
duckyoubeavers wrote:
offtheheezy wrote:does this pull live everytime? or does it just have players who's ever been on your squad?
it just gets players who have played for you this season. and i will grab the new stats after every sim
How do you grab usage and possessions and such? I can't even find it in our index :lol:

Re: Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 2:55 pm
by dd10snoop28
Snazy!

Re: Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 3:22 pm
by duckyoubeavers
offtheheezy wrote:
duckyoubeavers wrote:
offtheheezy wrote:does this pull live everytime? or does it just have players who's ever been on your squad?
it just gets players who have played for you this season. and i will grab the new stats after every sim
How do you grab usage and possessions and such? I can't even find it in our index :lol:
had to do that myself.

this is the usage formula: Usg% - Usage Percentage (available since the 1977-78 season in the NBA); the formula is 100 * ((FGA + 0.44 * FTA + TOV) * (Tm MP / 5)) / (MP * (Tm FGA + 0.44 * Tm FTA + Tm TOV)). Usage percentage is an estimate of the percentage of team plays used by a player while he was on the floor.

this is the possessions formula: Possessions= FGA-(FGA-FG)*OR%+0.37*AST-0.37*FG*Q/R+TO+0.4*FTA . For offensive rebound percentage i just used 37% which seemed to be the nba average. so these stats may be slightly off. source: http://www.rawbw.com/~deano/hoopla/floorpct.html

Re: Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 3:31 pm
by Foxyg1396
That’s a great addition! Thank you!

Re: Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 3:37 pm
by UOducksTK1
It'd be dope if you could read real time. How are you parsing the html pages? Do you have code for that?

Re: Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 3:43 pm
by offtheheezy
@The Bean Regime's spreadsheet and this website and a few more tweaks on the backend would make this an advanced analytics tool for DASL :lol:

Re: Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 4:07 pm
by The Bean Regime
offtheheezy wrote:@The Bean Regime's spreadsheet and this website and a few more tweaks on the backend would make this an advanced analytics tool for DASL :lol:
My per 36 was just a copy and paste with formulas in Excel.

Unless you mean the other secret one. Shhh. :lol:

Re: Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 5:45 pm
by duckyoubeavers
UOducksTK1 wrote:It'd be dope if you could read real time. How are you parsing the html pages? Do you have code for that?
yea i just scrape every box score with python. what do you mean by real time? just having it get the stats automatically after the sim is posted?

Re: Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 11:15 pm
by UOducksTK1
duckyoubeavers wrote:
UOducksTK1 wrote:It'd be dope if you could read real time. How are you parsing the html pages? Do you have code for that?
yea i just scrape every box score with python. what do you mean by real time? just having it get the stats automatically after the sim is posted?

Ohhh nvm, I thought you got a hold of the play by play files some how, so I was wondering if your scripts automatically picked up when new pbp files got added.

What is the web app written in? I’m working on getting a web app up for a draft central area for picking players, making it easier on commish and improving usability for GMs.

It’s newer stuff for me so it’s slow going.

Re: Site to track per 36 and a few advanced stats

Posted: Wed Jul 07, 2021 11:44 pm
by offtheheezy
Seems like we got quite a few engineers on here :lol:

We should all start a github project together :lol:

Re: Site to track per 36 and a few advanced stats

Posted: Thu Jul 08, 2021 9:48 am
by duckyoubeavers
UOducksTK1 wrote:
duckyoubeavers wrote:
UOducksTK1 wrote:It'd be dope if you could read real time. How are you parsing the html pages? Do you have code for that?
yea i just scrape every box score with python. what do you mean by real time? just having it get the stats automatically after the sim is posted?

Ohhh nvm, I thought you got a hold of the play by play files some how, so I was wondering if your scripts automatically picked up when new pbp files got added.

What is the web app written in? I’m working on getting a web app up for a draft central area for picking players, making it easier on commish and improving usability for GMs.

It’s newer stuff for me so it’s slow going.
i would love the play by play files if they are available.

i wrote this in python using the dash library. you can find that here: https://dash.plotly.com/introduction

dash makes it super easy to create web apps if you already know python. lemme know if you need any help!