def main():
    pbp_url = 'http://www.basketball-reference.com/boxscores/pbp/201510270GSW.html'
    # we are going to scrape s. curry, k. bryant, l. james.
    player_urls = ['http://www.basketball-reference.com/players/c/curryst01.html',
                   'http://www.basketball-reference.com/players/j/jamesle01.html',
                   'http://www.basketball-reference.com/players/h/hardeja01.html',
    ]

    players = Players()
    i = 0
    print "getting game info"
    games = player_list_to_unique_pbp(player_urls)
    print "game info acquired"
    for game in games:
        print 'players: ', len(players.players), 'events: ', players.events, game
        print 'game:', i, "/", len(games), "with ", len(games) - i, "remaining"
        i += 1
        pbp_url_to_game(game,players)

    f = open('basketball_shots.csv', 'w')
    #prints the players information to a csv
    players.dump_players(f)
    return 0