I'm using rvest and read_html to try and scrape a site. The scraping has worked for me before, but it won't work anymore. Using R version 3.4.2 and rvest 0.3.2
This is my code:
library(rvest)
read_html("http://hamilton.edu/news/story/the-medias-effect-on-womens-body-image")
and my error is:
Error in read_connection_(x, n) :
Evaluation error: Failure when receiving data from the peer.
Any ideas?
Wrapping the URL in url() seems to do the trick.
read_html(url("http://hamilton.edu/news/story/the-medias-effect-on-womens-body-image"))
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