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

Issue retrieving any player information about Shaquille O'Neal #97

Open
Taidgh-Robinson opened this issue Jan 1, 2023 · 0 comments
Open

Comments

@Taidgh-Robinson
Copy link

When running get_stats("Shaquille O'Neal", stat_type='ADVANCED', playoffs=False, career=False) I get this output:

`You searched for "Shaquille O'Neal"
1 result found.
Shaquille O'Neal
Results for Shaquille O'Neal:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\taidg\OneDrive\Desktop\Python\basketball_reference_scraper\basketball_reference_scraper\players.py", line 14, in get_stats
suffix = get_player_suffix(name)
File "C:\Users\taidg\OneDrive\Desktop\Python\basketball_reference_scraper\basketball_reference_scraper\utils.py", line 67, in get_player_suffix
initial = last_name_part[0].lower()
IndexError: string index out of range`

I have also tried name = 'Shaquille ONeal' and I get the same result. I think the issue is with his name having an apostrophe in it.

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

1 participant