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

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

Closed
ccneli opened this issue Aug 10, 2023 · 3 comments
Closed

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

ccneli opened this issue Aug 10, 2023 · 3 comments

Comments

@ccneli
Copy link

ccneli commented Aug 10, 2023

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

mjk2244 commented Aug 10, 2023

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

mjk2244 commented Aug 21, 2023

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

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

@mjk2244 mjk2244 closed this as completed Sep 13, 2023
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

3 participants