Scraping NFL data from 2021 and getting a HTTP error 404 code

Viewed 24

library(rvest) library(dplyr)

link = "https://www.nfl.com/stats/player-stats/category/passing/2021/reg/all/passingyards/DESCp"

page = read_html(link)

So far this is all I've gotten and it is showing an error I am not familiar with. I am brand new at coding and would appreciate some help if anyone knows. My goal is to accumulate data per position and be able to have it all in one R project. If you have any tips or tricks to help, please let me know.

0 Answers
Related