Page 1 of 1

Team box score stats

Posted: Fri Sep 28, 2012 11:21 pm
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"?

Re: Team box score stats

Posted: Sat Sep 29, 2012 4:10 am
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.

Re: Team box score stats

Posted: Sat Sep 29, 2012 8:03 am
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

Re: Team box score stats

Posted: Sat Sep 29, 2012 4:42 pm
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!!

Re: Team box score stats

Posted: Sat Sep 29, 2012 4:46 pm
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!!