Sports-Odds-Algorithms icon indicating copy to clipboard operation
Sports-Odds-Algorithms copied to clipboard

error , dose it work well now?

Open txc111 opened this issue 5 years ago • 3 comments

[18:30:21] User chose ['gs', 'golden-state-warriors'] Current season year: 2018 [18:30:25] Scraping game scores from http://espn.go.com/nba/team/schedule/_/name/gs/year/2018/seasontype/2/golden-state-warriors [18:31:58] scrape_game_scores(): (<class 'ValueError'>, 'espn_scraper.py', 351) [18:31:58] Loading existing data Traceback (most recent call last): File ".\sports_bettor.py", line 366, in sports_better.single_team_analysis() File ".\sports_bettor.py", line 89, in single_team_analysis odds_calculator.single_team_analysis(league_teams[choice]) File "C:\Users\HiTler\Desktop\Sports-Odds-Algorithms-master\odds_calculator.py", line 48, in single_team_analysis self.espn_scraper.update_data(team, cur_year) File "C:\Users\HiTler\Desktop\Sports-Odds-Algorithms-master\espn_scraper.py", line 174, in update_data for y in range(0, len(existing_data['game_scores'])): TypeError: list indices must be integers or slices, not str

txc111 avatar Mar 12 '19 01:03 txc111