pmeyers279 / basketball_db

package to query basketball-reference.com and save data.
http://basketball-db.readthedocs.io/en/latest/
0 stars 2 forks source link

Example create_db.save_team_season('MIN','2016',basedir='./') Fails. 2016 should be int #4

Open scottcoughlin2014 opened 7 years ago

scottcoughlin2014 commented 7 years ago

/Users/scottcoughlin/Documents/GitHub/basketball_db/basketball_db/create_db/core.py in save_team_season(team, year, basedir, break_after_missing_game, games) 35 soup =\ 36 BeautifulSoup(requests.get('http://www.basketball-reference.com/teams/%s/%d_games.html'\ ---> 37 % (team, year)).text,'lxml') year should be an int.

pmeyers279 commented 7 years ago

Ah shit. Ok, that's a good point. I'll just cast to int so that you can't screw it up. Sorry that it was wrong in the readme.

-pat