Code Monkey home page Code Monkey logo

Comments (6)

lbenz730 avatar lbenz730 commented on May 30, 2024

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.

iprva avatar iprva commented on May 30, 2024

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.

lbenz730 avatar lbenz730 commented on May 30, 2024

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.

iprva avatar iprva commented on May 30, 2024

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.

lbenz730 avatar lbenz730 commented on May 30, 2024

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.

iprva avatar iprva commented on May 30, 2024

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)

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.