Describe the bug
In player_game_log.py, WR game logs currently include offensive snap percentage. However, Pro Football Reference only has snap percentage from the 2012 season onward. As a result, any attempts to get a WR's game log before the 2011 season produces an error.
To Reproduce
from pro_football_reference_web_scraper import player_game_log as p
# this code produces an error
p.get_player_game_log('Julio Jones', 'WR', 2011)
# this code works
p.get_player_game_log('Julio Jones', 'WR', 2012)
Expected behavior
We should avoid the error by only tracking snap pct. in WR game logs if the season is >=2012.
Screenshots
Julio Jones, 2011:
Julio Jones, 2012:
Desktop (please complete the following information):
OS: iOS
Version 0.2.0
Smartphone (please complete the following information):
N/A
Describe the bug In player_game_log.py, WR game logs currently include offensive snap percentage. However, Pro Football Reference only has snap percentage from the 2012 season onward. As a result, any attempts to get a WR's game log before the 2011 season produces an error.
To Reproduce
Expected behavior We should avoid the error by only tracking snap pct. in WR game logs if the season is >=2012.
Screenshots Julio Jones, 2011:
Julio Jones, 2012:
Desktop (please complete the following information):
Smartphone (please complete the following information): N/A
Additional context N/A