
Playing around with Python and lxml I wrote a script that scrapes http://basketball-reference.com’s NBA team pages for various statistics and stores the data in a formatted text file, which is then used in a second script that generates graphs (using OpenGL/GLUT) and a user interface for browsing players and teams.