Here was the full email I received along with my message:
Message rejected by filter rule match
---------- Forwarded message ----------
From: dadrivr <dadrivr@gmail.com>
To: r-help@r-project.org
Cc:
Date: Tue, 26 Feb 2013 21:29:39 -0800 (PST)
Subject: Scraping data from website---Error in htmlParse: error in creating parser I'm trying to scrape football projections from accuscore.com for the different positions (right now they're set to zeros, but that will change). I can get the QB projections, but I can't get the projections for any of the other positions.
library("XML")
#this works fine (QB projections)
qb <-
readHTMLTable("
http://accuscore.com/fantasy-sports/nfl-fantasy-sports/",
header=1)$fantasy_table
#this does not (RB projections)
rb <-
readHTMLTable("
http://accuscore.com/fantasy-sports/nfl-fantasy-sports/Rest-of-Season-RB", header=1)$fantasy_table
I'm not sure what the actual website for the RB and other projections is. When I go to the main website for the football projections (
http://accuscore.com/fantasy-sports/nfl-fantasy-sports/), it displays the QB projections. When I click on another position (e.g., RB) it displays a new URL (
http://accuscore.com/fantasy-sports/nfl-fantasy-sports/Rest-of-Season-RB). When I try entering this new URL into the readHTMLTable function, I receive the following error:
Error in htmlParse("
http://accuscore.com/fantasy-sports/nfl-fantasy-sports/Rest-of-Season-RB/"):
error in creating parser for
http://accuscore.com/fantasy-sports/nfl-fantasy-sports/Rest-of-Season-RB/Also, when I try going to this website in my browser, it says it is not found even though it is displayed when clicking on the position manually. What's going on? Might this have something to do with Javascript? How can I scrape the projections for the other positions?
Thanks in advance!
--
View this message in context:
http://r.789695.n4.nabble.com/Scraping-data-from-website-Error-in-htmlParse-error-in-creating-parser-tp4659774.htmlSent from the R help mailing list archive at Nabble.com.
Pedro <Nabble> wrote
What was your message?