'sportsipy.nba.teams.Teams error The requested page returned a valid response, but no data could be found
have already referred to the thread, but even that doesn't seem to work. When I run the sportsipy.nba.teams.Teams function I am getting notified that The requested page returned a valid response, but no data could be found
i guess the div name has changed again, can anyone please update the div names.
code- '''
from sportsipy.nba.teams import Teams
year='2018'
teams = Teams(year)
playeridlist = []
nba_player_filename = f'nbaplayer-{year}.list'
for team in teams:
print('Getting players for team: ' + team.name)
for player in team.roster.players:
playeridlist.append(player.name)
playeridlist.append("\n")
with open(nba_player_filename, 'w+') as player_file:
player_file.writelines(playeridlist)
'''''
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
