Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8968609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:28:41+00:00 2026-06-15T17:28:41+00:00

I am looking to incorporate a loop in R which goes through every game’s

  • 0

I am looking to incorporate a loop in R which goes through every game’s boxscore data on the NFL statistics website here: http://www.pro-football-reference.com/years/2012/games.htm

At the moment I am having to manually click on the “boxscore” link for every game every week; is there any way to automate this in R? My code works with the Full play-by-play dataset within each link; it’s taking me ages at the moment!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:28:42+00:00Added an answer on June 15, 2026 at 5:28 pm

    Web scraping may be against the terms of use of some websites. The enforceability of these terms is unclear. While outright duplication of original expression will in many cases be illegal, in the United States the courts ruled in Feist Publications v. Rural Telephone Service that duplication of facts is allowable.

    require(RCurl)
    require(XML)
    bdata<-getURL('http://www.pro-football-reference.com/years/2012/games.htm')
    bdata<-htmlParse(bdata)
    boxdata<-xpathSApply(bdata,'//a[contains(@href,"boxscore")]',xmlAttrs)[-1]
    

    The above will get the boxscore stem for the various games.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a SIP client on Linux which I could control through a
Here's the gist of the code I am looking to incorporate error handling into.
In creating my personal website, I'm looking to incorporate many of the amazing new
I am looking to incorporate a NSSlider in a Cocoa application that controls the
I'm looking for tips and ideas on how to best incorporate authentication with PHP
I'd like to incorporate OpenSSH support into a Windows application and I am looking
So, recently I've been looking into the HTML5 Indexeddb feature which is controlled with
I'm looking to incorporate a video chat function in my android/iOS app, and I
I've been looking to incorporate a Python Script a friend made for me into
I am looking for a Java library to incorporate into a demo web app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.