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 scraping when trying to run the method team.riders() #16

Closed
cecper opened this issue Oct 6, 2023 · 3 comments
Closed

Problem scraping when trying to run the method team.riders() #16

cecper opened this issue Oct 6, 2023 · 3 comments

Comments

@cecper
Copy link

cecper commented Oct 6, 2023

when running version procyclingstats==0.1.7 this code:

from procyclingstats import Team


team = Team("team/bora-hansgrohe-2022")
print(team.riders())

results in this error:

Traceback (most recent call last):
  File "C:\Users\user\Documenten\test.py", line 12, in <module>
    print(team.riders())
  File "C:\Users\user\anaconda3\lib\site-packages\procyclingstats\team_scraper.py", line 183, in riders
    table_parser = TableParser(career_points_table_html)
  File "C:\Users\user\anaconda3\lib\site-packages\procyclingstats\table_parser.py", line 31, in __init__
    table_body = html_table.css_first("tbody")
AttributeError: 'NoneType' object has no attribute 'css_first'
@themm1
Copy link
Owner

themm1 commented Oct 9, 2023

Thanks for reporting an issue. I will take a look at it in a few days.

@JannesVliegenUCLL
Copy link

any update?

@themm1
Copy link
Owner

themm1 commented Oct 21, 2023

Sorry it's kinda late, but it should be fixed now. It's not on PyPI yet so you have to download repo from GitHub manually.

@themm1 themm1 closed this as completed Oct 21, 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