I would like a computer program that takes a range of dates (e.g. 12-01-2009 - 1-21-2010) at the command line and returns stats for every college basketball game played on those dates. The program should obtain these stats via the ESPN website. For any given date, you can see the list of all basketball games on ESPN website by going here (using 12/19/2011 as an example) ...
[login to view URL]
The program should determine what games were played based on that link, then by following the "Boxscore" links, get the data for each game
For each game played, the program should return one line of text separated by commas with the following fields, in this order:
Date (YYYYMMDD)
Away team (no punctuation)
Home team (no punctuation)
City of Game (no punctuation)
State of Game (2 letter abbreviation)
Away 1H score
Home 1H score
Away 2H score
Home 2H score
Away final score
Home final score
Number of overtimes
Away score in all overtimes
Home score in all overtimes
Away FGM
Away FGA
Home FGM
Home FGA
Away 3PM
Away 3PA
Home 3PM
Home 3PA
Away FTM
Away FTA
Home FTM
Home FTA
Away OREB
Away REB
Home OREB
Home REB
Away AST
Home AST
Away STL
Home STL
Away BLK
Home BLK
Away TO
Home TO
Away PF
Home PF
Officials (list all 3 no punctuation or leave blank if officials not listed)
Please make sure the program correctly counts the number of overtime periods. Here are some example games and an example of the line that should be returned for them.
EXAMPLE 1
[login to view URL]
20111225,Clemson,Hawaii,Honolulu,HI,34,31,34,44,68,75,0,0,0,26,64,26,53,8,16,7,15,8,12,16,19,12,26,7,34,13,17,4,6,6,2,7,11,19,13,JonStigliano,MikeThibodeaux,ChrisBeaver
EXAMPLE 2
[login to view URL]
20101204,OklahomaState,LaSalle,Philadelphia,PA,25,33,42,34,2,25,20,36,81,32,79,7,20,8,21,13,22,15,22,17,48,13,44,20,22,12,5,2,6,18,20,24,17,,
The program should be able to deal with all ESPN college basketball boxscores going back to November 2008. Don't hesitate to ask questions if anything is unclear.
The program should also have an option of pausing X seconds between getting data for each game. For example
"[login to view URL] 01-08-2009 02-03-2009 10" should get every game between 1-8-2009 and 2-3-2009 and wait 10 seconds between each game.