Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error , dose it work well now? #2

Open
txc111 opened this issue Mar 12, 2019 · 3 comments
Open

error , dose it work well now? #2

txc111 opened this issue Mar 12, 2019 · 3 comments

Comments

@txc111
Copy link

txc111 commented Mar 12, 2019

[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
Copy link

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#
"

@txc111 txc111 closed this as completed Apr 30, 2019
@JamesQuintero
Copy link
Owner

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

@JamesQuintero JamesQuintero reopened this May 3, 2019
@jdougels21
Copy link

Any update on scraping more current data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants