Comments (6)
Hey Aditya, thanks for bringing this to my attention. Your first issue isn't so much an issue with the package. When no season argument is supplied, the package assumes to use the current season (now "2020-21") which doesn't yet have schedules available. You should supply season = "2019-20" if you want this most recent season's data.
That being said, ESPN is always changing it's underlying html, which is why you were getting the 2nd error. I've fixed that and added a warning message to the user to use 2019-20 in place of current season for time being. Let me know where else the package breaks if you find any places, as whenever ESPN changes their html, it causes these minor hiccups in a few spots.
Thanks,
Luke
from ncaahoopr.
Hey Luke,
I'm getting the same errors with get_schedule, get_pbp, & get_game_ids.
In addition, when I try to pull a single game's play-by-play data prior to the 2019-2020 season:
get_pbp_game(401123419)
Scraping Data for Game: 1 of 1
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open URL 'http://barttorvik.com/2019_rosters.json': HTTP status was '403 Forbidden'
I'm not sure if this is an issue on my end, your end, or Bart's end.
Thanks,
Ian
from ncaahoopr.
Hey Ian,
I wasn't able to replicate the issue w/ get_pbp_game, so I think that could be on your end? I just pushed some changes to fix the other issue regarding past schedule/pbp/game_id. Thanks for the heads up! Let me know if you still can't get it working after re-install.
Luke
from ncaahoopr.
I now appear to be having issues re-installing the package:
package ‘rlang’ successfully unpacked and MD5 sums checked
Error: Failed to install 'ncaahoopR' from GitHub:
(converted from warning) cannot remove prior installation of package ‘rlang’
from ncaahoopr.
Probably related to this issue:
https://stackoverflow.com/questions/41918543/warning-in-install-packages-cannot-remove-prior-installation-of-package-data
Try restarting your R session fresh and then try install.
from ncaahoopr.
Was able to install by selecting 3: None. Functions work properly!
Downloading GitHub repo lbenz730/ncaahoopR@master
These packages have more recent versions available.
It is recommended to update all of them.
Which would you like to update?
1: All
2: CRAN packages only
3: None
4: rlang (0.4.6 -> 0.4.7) [CRAN]
5: pillar (1.4.4 -> 1.4.6) [CRAN]
6: vctrs (0.3.1 -> 0.3.2) [CRAN]
7: tibble (3.0.1 -> 3.0.3) [CRAN]
Enter one or more numbers, or an empty line to skip updates:
Still having the issue with Bart's site. I'm curious if he has blocked my scraping attempts.
from ncaahoopr.
Related Issues (20)
- Enhancement for wncaahoopR: Add Shot Charts for Women's Games HOT 1
- assist_net not working for 2021-22 Season HOT 4
- get_pbp_game not working for 2021-22 Season HOT 3
- Any Lafayette game fails get_pbp_game with extra_parse=T HOT 2
- Getting some NAs in get_master_schedule for game_id
- Home and Away Score Swaps HOT 9
- possession_before/possession_after columns inaccurate (2022-23 PBP data only) HOT 11
- Unable to get data for most of the functions HOT 11
- Score Column Error HOT 1
- Condition Length Error HOT 5
- IsFour Error HOT 2
- Schedule Pull On Days w/ No Games HOT 2
- Improvement - Player IDs to get_roster() HOT 3
- Issue: get_boxscore() not functioning / "lazy-load db is corrupt" HOT 7
- get_boxscore doesn't seem to be working, may be related to Issue #91 HOT 2
- Season Box Score issues HOT 1
- Improve Docs: Must Have Package Loaded HOT 1
- get_boxscore function error HOT 2
- Bug in get_master_schedule() HOT 3
- {resolved}
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 ncaahoopr.