R and Web Scraping with looping
问题 I am scraping a website with urls http://domain.com/post/X , where X is a number stating from 1:5000 I can scrap using rvest using this code: website <- html("http://www.domain.com/post/1") Name <- website%>% html_node("body > div > div.row-fluid > div > div.DrFullDetails > div.MainDetails > div.Description > h1") %>% html_text() Speciality <- website %>% html_node("body > div > div.row-fluid > div > div.DrFullDetails > div.MainDetails > div.Description > p.JobTitle") %>% html_text() I need