0

I have a character vector(x) which consists of multiple URL. I am scraping data from each url using rvest. It was found that one of the url in the vector is incorrect because of which error 404 occurred, without scraping data from other pages. How to run the program, ignoring the incorrect url.

lapply(x ,
          function(url){
                         
                         url %>% read_html() %>% 
                         html_nodes("") %>% 
                         html_text()
                               
                             })
mohitji
  • 129
  • 1
  • 10

0 Answers0