Code Monkey home page Code Monkey logo

Comments (10)

davidjkrause avatar davidjkrause commented on June 19, 2024 1

As far as I can tell, no one is merging any fixes to this repository for some time. I've got a fork which is updated for newer Python module requirements and includes the fix for #729 as well as others, see https://github.com/davidjkrause/sportsipy

If it doesn't work, you can let me know or file an issue there and I'll take a look.

from sportsipy.

davidjkrause avatar davidjkrause commented on June 19, 2024 1

Sites change, so a tool like this will need constant maintenance; adding one vote to make @davidjkrause's repo the new home for sportsipy. Please join this bandwagon, and if enough of us use and star that repo, perhaps we can ask @roclark to point to it in the README of this repo, and maybe transfer PyPI ownership at some point. @davidjkrause, maybe update the README on your repo to indicate that you are at least pulling in new PRs from the original repo, i.e., preferably the top of the README on your repo doesn't also indicate that it's not being maintained?

Go go OSS community ownership.

Updated the README file on my fork. Willing to take ownership going forward, however that works.

from sportsipy.

1jonahg1 avatar 1jonahg1 commented on June 19, 2024

still works for me, using the NFL library.

from sportsipy.

davidjkrause avatar davidjkrause commented on June 19, 2024

Which boxscores are you trying to load? Can you give a short example?

from sportsipy.

jchavis06 avatar jchavis06 commented on June 19, 2024

Just trying to run the basic example:

from sportsipy.nfl.boxscore import Boxscore

game = Boxscore('202302120phi')
df = game.dataframe

Get this error:

traceback (most recent call last):
  File "/Users/jake/workspace/scripts/testSportsReference.py", line 3, in <module>
    game = Boxscore('202302120phi')
  File "/Users/jake/Library/Python/3.9/lib/python/site-packages/sportsipy/nfl/boxscore.py", line 296, in __init__
    self._parse_game_data(uri)
  File "/Users/jake/Library/Python/3.9/lib/python/site-packages/sportsipy/nfl/boxscore.py", line 784, in _parse_game_data
    value = self._parse_name(short_field, boxscore)
  File "/Users/jake/Library/Python/3.9/lib/python/site-packages/sportsipy/nfl/boxscore.py", line 447, in _parse_name
    return pq(str(boxscore(scheme)).strip())
  File "/Users/jake/Library/Python/3.9/lib/python/site-packages/pyquery/pyquery.py", line 212, in __init__
    elements = fromstring(context, self.parser)
  File "/Users/jake/Library/Python/3.9/lib/python/site-packages/pyquery/pyquery.py", line 63, in fromstring
    result = getattr(lxml.html, meth)(context)
  File "/Users/jake/Library/Python/3.9/lib/python/site-packages/lxml/html/__init__.py", line 873, in fromstring
    doc = document_fromstring(html, parser=parser, base_url=base_url, **kw)
  File "/Users/jake/Library/Python/3.9/lib/python/site-packages/lxml/html/__init__.py", line 761, in document_fromstring
    raise etree.ParserError(
lxml.etree.ParserError: Document is empty

Potentially just a dependency issue? But seems like it is getting an empty document, so figured maybe the site changed. I saw they added a video segment above the games.

from sportsipy.

davidjkrause avatar davidjkrause commented on June 19, 2024

For the specific test you are running, the fix on #729 resolved the issue for me. See #729 (comment)

from sportsipy.

GilbertCherrie avatar GilbertCherrie commented on June 19, 2024

@jchavis06 @roclark is this fixed? I am still running into this issue. Seems like no uri are returned from boxscores and boxscore doesn't return any stats either.

from sportsipy.

agentmorris avatar agentmorris commented on June 19, 2024

Sites change, so a tool like this will need constant maintenance; adding one vote to make @davidjkrause's repo the new home for sportsipy. Please join this bandwagon, and if enough of us use and star that repo, perhaps we can ask @roclark to point to it in the README of this repo, and maybe transfer PyPI ownership at some point. @davidjkrause, maybe update the README on your repo to indicate that you are at least pulling in new PRs from the original repo, i.e., preferably the top of the README on your repo doesn't also indicate that it's not being maintained?

Go go OSS community ownership.

from sportsipy.

senthilmk avatar senthilmk commented on June 19, 2024

Looks like the source data site has changed URI(s) and that seems to be breaking working code.

from sportsipy.

davidjkrause avatar davidjkrause commented on June 19, 2024

Looks like the source data site has changed URI(s) and that seems to be breaking working code.

Do you have a specific use case that's failing? As was discussed above, the site does change from time to time, but this repository isn't really updating. If you can share a short sample that's failing for you, I can take a look and possibly fix in my fork.

from sportsipy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.