JamesQuintero / Sports-Odds-Algorithms

System that calculates and uses algorithms to predict the outcome of NBA, NHL, and MLB sports games.
87 stars 30 forks source link

error , dose it work well now? #2

Open txc111 opened 5 years ago

txc111 commented 5 years ago

[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

c0deless commented 5 years ago

hello , have a bit of an issue , "17:53:36] User chose ['bkn', 'brooklyn-nets'] Current season year: 2019 [17:53:43] Scraping game scores from http://espn.go.com/nba/team/schedule/_/name/bkn/year/2019/seasontype/2/brooklyn-nets [17:53:46] scrape_game_scores(): (<class 'ValueError'>, 'espn_scraper.py', 351) [17:53:46] 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 "/root/Sports-Odds-Algorithms/odds_calculator.py", line 48, in single_team_analysis self.espn_scraper.update_data(team, cur_year) File "/root/Sports-Odds-Algorithms/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 root@c0ldhoney:~/Sports-Odds-Algorithms# "

JamesQuintero commented 5 years ago

the espn go site by have change the way data is retrieved, but I will have to check.

jdougels21 commented 5 years ago

Any update on scraping more current data?