mjk2244 / pro-football-reference-web-scraper

Web scraper to retrieve player and team data from Pro Football Reference.
https://mjk2244.github.io/pro-football-reference-web-scraper/
Apache License 2.0
28 stars 19 forks source link

AttributeError: 'NoneType' object has no attribute 'find_all' #48

Closed ccneli closed 11 months ago

ccneli commented 1 year ago

When I run the following code as displayed in the ReadMe:

from pro_football_reference_web_scraper import player_game_log as p

game_log = p.get_player_game_log('Josh Allen', 'QB', 2022) print(game_log)

I get the following error:

AttributeError: 'NoneType' object has no attribute 'find_all'

mjk2244 commented 1 year ago

Thanks for pointing this out. It looks like PFR changed something with their underlying naming conventions. Should be an easy fix. Will try to find some time this week and push the change

mjk2244 commented 1 year ago

@ccneli Issue should be fixed. Run pip3 install --upgrade pro_football_reference_web_scraper from the command line and try again. Let me know if you still have issues.

bridger217 commented 11 months ago

FYI, you'll see this error when you get rate limited.