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

NFL Team data not retrieving #791

Open
VirtualMe64 opened this issue Feb 10, 2024 · 1 comment
Open

NFL Team data not retrieving #791

VirtualMe64 opened this issue Feb 10, 2024 · 1 comment

Comments

@VirtualMe64
Copy link

Describe the bug
Running the example code to pull team data results in the error "ValueError: Team abbreviation DET not found"

To Reproduce
Sample code which causes an issue.

from sportsipy.nfl.teams import Teams

teams = Teams()
lions = teams('DET')

Solution
I solved this by modifying the function _pull_page in utils.py

        return pq(url) # old
        return pq(requests.get(url).content) # fixed
@davidjkrause
Copy link

As with most recent issues here, this case is resolved by the fork at https://github.com/davidjkrause/sportsipy

See my similar comment on most of the recent issues, this particular repo seems no longer maintained.

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

2 participants