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

Problem with line.div.h2.get_text() #7

Open
stoverc opened this issue Jul 6, 2022 · 0 comments
Open

Problem with line.div.h2.get_text() #7

stoverc opened this issue Jul 6, 2022 · 0 comments

Comments

@stoverc
Copy link

stoverc commented Jul 6, 2022

I tried running this in Python 3.9.13 on MacOS 11.6.5 today (Jul 6, 2022) and got the following error:

File "dir/MMA-parser-for-Sherdog-and-UFC-data-master 2/sherdog-parser.py", line 83, in set_pro_fights
    if line.div.h2.get_text() == 'Fight History - Pro':
AttributeError: 'NoneType' object has no attribute 'get_text'

(I've put "dir" in place of my actual directory; I hope that's okay)

Is this my mistake or did Sherdog change their site again?

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