Update api_scraper.py
Browse files- api_scraper.py +1 -0
api_scraper.py
CHANGED
|
@@ -907,6 +907,7 @@ class MLB_Scrape:
|
|
| 907 |
'team':team_list})
|
| 908 |
|
| 909 |
else:
|
|
|
|
| 910 |
player_data = requests.get(url=f'https://statsapi.mlb.com/api/v1/sports/{sport_id}/players?season={season}&gameType=[{game_type_str}]').json()['people']
|
| 911 |
|
| 912 |
#Select relevant data that will help distinguish players from one another
|
|
|
|
| 907 |
'team':team_list})
|
| 908 |
|
| 909 |
else:
|
| 910 |
+
print("DID NOT GET TO SPRING")
|
| 911 |
player_data = requests.get(url=f'https://statsapi.mlb.com/api/v1/sports/{sport_id}/players?season={season}&gameType=[{game_type_str}]').json()['people']
|
| 912 |
|
| 913 |
#Select relevant data that will help distinguish players from one another
|