I want to scrap a https website, but I failed.
Here is my code:
require(rvest)
url <- "https://www.sunnyplayer.com/de/"
content <- read_html(url)
But I have error in console- "Error in open.connection(x, "rb") : Timeout was reached" How I can fix this problem?
The same thing happens to me on a proxy. To get around this, use download.file
and specify a download location. You can then parse the file with read_html
.
download.file(url, destfile = 'C://whatever.html')
content <- read_html('C://whatever.html')
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