Comments (10)
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.
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.
still works for me, using the NFL library.
from sportsipy.
Which boxscores are you trying to load? Can you give a short example?
from sportsipy.
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.
For the specific test you are running, the fix on #729 resolved the issue for me. See #729 (comment)
from sportsipy.
@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.
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.
Looks like the source data site has changed URI(s) and that seems to be breaking working code.
from sportsipy.
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)
- NFL Rosters Not Finding Any Players HOT 1
- NFL Boxscore initialization failing HOT 2
- NFL Boxscore: Document is Empty HOT 12
- NHL: Full Score Not Shown When Game Goes Into Overtime or Shootout
- NFL Boxscore: lxml b'Tag use invalid' HOT 6
- NCAAB height returns None obeject
- HTTPError
- HTTPError: HTTP Error 429: Too Many Requests HOT 21
- NCAAB Boxscore losing_abbr, losing_name, winning_abbr, winning_name not populating HOT 3
- Game (goals_against) data returning "None"
- Add NFL scoring information to Boxscore HOT 1
- NHL Boxscore error
- NFL teams proper abbreviations are not all properly working to pull data HOT 2
- NHL Boxscore returning previous days data HOT 2
- Teams data not found for all sports HOT 2
- NCAAB Boxscore and Boxscores returning blank for valid inputs HOT 2
- Script running but no data returned HOT 7
- Cannot get past first example of tutorial
- join() got an unexpected keyword argument 'closing_combiner' error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sportsipy.