I receive the following error when attempting to use the rvest
package in R:
Error in open.connection(x, "rb") : Couldn't connect to server
What is causing this error message? The function is shown below:
htmlpage <- read_html("http://forecast.weather.gov/MapClick.php?lat=42.27925753000045&lon=-71.41616624299962#.V17UH-IrKHs")
I tried different ways and the problem was not in the proxy connection, but in the way that R gets the connection. Through the definition of a binary connection of the url within url()
the problem was solved.
con <- url("http://www.imdb.com/title/tt1490017/", "rb")
lego_movie <- read_html(con)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With