Team box score stats

Home for all your discussion of basketball statistical analysis.
Post Reply
hernanb
Posts: 3
Joined: Thu Sep 27, 2012 3:51 am

Team box score stats

Post by hernanb »

Hi,

I'm new comer in APBRmetrics. I used to play basketball when I was younger, and I enjoy this kind of stuff (stats/math & computers). So it was pleasant surprise discover this discipline and this forum.

My idea is to start exploring data importing csv files using R or python.

I've seen team box score stats in http://www.nbastuffer.com/Download_NBA_ ... Excel.html (but I have to pay to get data)

I've seen also data for each team and for some years ago like displayed in:
http://www.basketball-reference.com/tea ... l_per_game

I know that I can convert to csv in the site, but I have to visit url for every team, every season and probably there is some other site where can I get a csv with all data.

Do you have any suggestion?

Thanks in adavance!
Hernán

ps: Exploring yahoo data
http://sports.yahoo.com/nba/stats/bytea ... eason_2010

I don't understand what does "Opposing Team Stats" mean in relation to "Team Stats"?
Crow
Posts: 10623
Joined: Thu Apr 14, 2011 11:10 pm

Re: Team box score stats

Post by Crow »

"Opposing Team Stats" compiles what the opposing team stats where against a specific team for a season. You can think of it as that team's defensive results, what they allowed the other team's offense to do against them.

For other data files, look here http://basketballvalue.com/downloads.php and read other threads here.
J.E.
Posts: 852
Joined: Fri Apr 15, 2011 8:28 am

Re: Team box score stats

Post by J.E. »

If you know Python I recommend using urllib and possibly BeautifulSoup.
A Python script that grabs all basketball-reference team pages, for all seasons, with BoxScore data in them, is ~10 lines long
hernanb
Posts: 3
Joined: Thu Sep 27, 2012 3:51 am

Re: Team box score stats

Post by hernanb »

Crow wrote:"Opposing Team Stats" compiles what the opposing team stats where against a specific team for a season. You can think of it as that team's defensive results, what they allowed th eother team's offense to do against them.

For other datafiles, look here http://basketballvalue.com/downloads.php and read other threads here.
Ok, now I understand "Opposing team stats". I will check basketballvalue.com.

Thank you!!
hernanb
Posts: 3
Joined: Thu Sep 27, 2012 3:51 am

Re: Team box score stats

Post by hernanb »

J.E. wrote:If you know Python I recommend using urllib and possibly BeautifulSoup.
A Python script that grabs all basketball-reference team pages, for all seasons, with BoxScore data in them, is ~10 lines long
Yes!! That's exactly what I'm doing now.

I think that may be a bit more than ~10 lines long, since I 've to parse 2 or 3 kind of pages (one for get the page of the season, another for get a list of links to boxscores and the last to get the boxscores data).

Thank you!!
Post Reply