Web scraping of image
问题 I am a beginner. I created a small code to web scraping with rvest. I found a very convenient code %>% html_node ()%>% html_text ()%>% as.numeric () , but I was not able to correctly change the code for scraping url of image. My code for web scraping url of image: UrlPage <- html ("http://eyeonhousing.org/2012/11/gdp-growth-in-the-third-quarter-improved-but-still-slow/") img <- UrlPage%>% html_node (". wp-image-5984")%>% html_attrs () Result: class "Aligncenter size-full wp-image-5984" `enter