Error with read_html() Peer Certificate cannot be authenticated

r

#1

Hello I am going through the beginning steps of web scraping. I am getting an error at the read_html() function. Can some please help me? I have search google but unable to find a solution. Here is the error: Error in open.connection(x, “rb”) :
Peer certificate cannot be authenticated with given CA certificates

and below is the packages I am using.

library(httr)
library(rvest)
library(xlm2)
Error in library(xlm2) : there is no package called ‘xlm2’

set_config(config(ssl_verifypeer=0L))

url = “http://www.imdb.com/search/title?count=100&release_date=2016,2016&title_type=feature”

webpage = read_html(url)
Error in open.connection(x, “rb”) :
Peer certificate cannot be authenticated with given CA certificates


#2

Hi @enmanuel

Your code is working fine at my end.


#3

Then is safe to assume that is something with the firewall. Thanks @pjoshi15.