On Sun, Mar 11, 2018 at 09:12:56AM -0500, KENNETH ROY CABRERA TORRES wrote:
> Hi dear R users:
> I'm trying the following code to download an information from the web.
> url1 <-
> con <- url(url1, "r")
> x <- readLines(con)
> I obtain the folowing message:
> "Su explorador no es soportado por Oracle BI Presentation Services."
> Your browser do not support Oracle BI Presentation Sevices.
I tried opening that URL with my browser and it worked (or at least I
think it worked, it took me to a page where I could see a very long
table titled "Tasa de cambio representativa del mercado (TRM)".
I tried obtaining the page using wget and I got the error you mentioned.
When I forge wget to identify itself as Firefox, I get returned a
different code (one that I suppose will redirect me to the page you are
trying to scrape).
The problem could be solved by telling R to use a different user-agent,
like Firefox or Chrome. Check
However, I think the system that provides the HTML content you want
like Selenium (https://www.r-bloggers.com/scraping-with-selenium/).
José María (Chema) Mateos
https://rinzewind.org/blog-es || https://rinzewind.org/blog-en
Rfirstname.lastname@example.org mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.