Giter Club home page Giter Club logo

Comments (4)

jthomasmock avatar jthomasmock commented on June 11, 2024

Hi @Grayhawk34 I believe this is working in latest release (0.5) as I've redone the function. Can you please confirm?

remotes::install_github("jthomasmock/espnscrapeR")
get_nfl_boxscore_players(game_id = "401220131")
# A tibble: 79 x 84
   game_id  game_uid season season_type date   week home_away winner team_id team_uid
   <chr>    <chr>     <int>       <int> <chr> <int> <chr>      <int> <chr>   <chr>   
 1 4012201… s:20~l:…   2020           2 2020…     1 away           0 15      s:20~l:…
 2 4012201… s:20~l:…   2020           2 2020…     1 away           0 15      s:20~l:…
 3 4012201… s:20~l:…   2020           2 2020…     1 away           0 15      s:20~l:…
 4 4012201… s:20~l:…   2020           2 2020…     1 away           0 15      s:20~l:…
 5 4012201… s:20~l:…   2020           2 2020…     1 away           0 15      s:20~l:…
 6 4012201… s:20~l:…   2020           2 2020…     1 away           0 15      s:20~l:…
 7 4012201… s:20~l:…   2020           2 2020…     1 away           0 15      s:20~l:…
 8 4012201… s:20~l:…   2020           2 2020…     1 away           0 15      s:20~l:…
 9 4012201… s:20~l:…   2020           2 2020…     1 away           0 15      s:20~l:…
10 4012201… s:20~l:…   2020           2 2020…     1 away           0 15      s:20~l:…
# … with 69 more rows, and 74 more variables: team_city <chr>, team_name <chr>,
#   team_abb <chr>, team_full <chr>, team_color <chr>, team_color_alt <chr>,
#   team_logo <chr>, team_order <int>, team_score <int>, team_record <chr>,
#   text <chr>, player_id <chr>, player_uid <chr>, player_guid <chr>,
#   first_name <chr>, last_name <chr>, full_name <chr>, pass_att <int>,
#   pass_cmp <int>, pass_yds <dbl>, pass_avg <dbl>, pass_td <dbl>, pass_int <dbl>,
#   pass_sacks <dbl>, pass_sack_yds <dbl>, pass_qbr <dbl>, pass_rtg <dbl>,
#   rush_att <dbl>, rush_yds <dbl>, rush_avg <dbl>, rush_td <dbl>, rush_long <dbl>,
#   rec_total <dbl>, rec_yds <dbl>, rec_avg <dbl>, rec_td <dbl>, rec_long <dbl>,
#   rec_tgts <dbl>, fum_total <dbl>, fum_lost <dbl>, fum_rec <dbl>, def_tkl <dbl>,
#   def_solo_tkl <dbl>, def_sacks <dbl>, def_tfl <dbl>, def_pd <dbl>,
#   def_qb_hts <dbl>, def_td <dbl>, int_total <dbl>, int_yds <dbl>, int_td <dbl>,
#   kick_ret_no <dbl>, kick_ret_yds <dbl>, kick_ret_avg <dbl>, kick_ret_long <dbl>,
#   kick_ret_td <dbl>, punt_ret_no <dbl>, punt_ret_yds <dbl>, punt_ret_avg <dbl>,
#   punt_ret_long <dbl>, punt_ret_td <dbl>, kick_fg_att <dbl>, kick_fg_made <dbl>,
#   kick_pct <dbl>, kick_long <dbl>, kick_xp_att <dbl>, kick_xp_made <dbl>,
#   kick_pts <dbl>, punt_no <dbl>, punt_yds <dbl>, punt_avg <dbl>, punt_tb <dbl>,
#   punt_in_20 <dbl>, punt_long <dbl>

from espnscraper.

Grayhawk34 avatar Grayhawk34 commented on June 11, 2024

I'm getting the following error:

Error in open.connection(con, "rb") : HTTP error 403.

Never had this before.

from espnscraper.

jthomasmock avatar jthomasmock commented on June 11, 2024

Hi @Grayhawk34 - that means a forbidden pathway.

Can you confirm that you have:

  • Installed the latest version of the espnscrapeR package w/ remotes::install_github("jthomasmock/espnscrapeR")
  • That you can navigate to the raw url here ?

from espnscraper.

Grayhawk34 avatar Grayhawk34 commented on June 11, 2024

from espnscraper.

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.