I am trying to retrieve the average user rating from times of an Indian movie Hindi review page, but I am unable to do so it is just reading nothing. I am thinking that the reason is because of it is dynamically loading.
This is the code I have written:
library('rvest')
avg_readerrating<-c()
v2<-"http://timesofindia.indiatimes.com/entertainment/hindi/movie-
reviews/moviearticlelistdatewise1/2742919.cms?query=*:*&startdate=2015-01-
01&enddate=2015-01-31§ionid=2742919"
url<-gsub("monthR",month[i],gsub("dateR",date[i],v2))
download.file(url, destfile = 'H:/whatever.html')
web <- read_html('H:/whatever.html')
avg_readerrating_html<-html_nodes(web,xpath='//*
[@id="articlenew"]/div/div[2]/div[2]/div/span[2]')
avg_readerrating_Tab<-html_text(avg_readerrating_html)
avg_readerrating<-c(avg_readerrating,avg_readerrating_Tab)
After I run this code it is just showing ""
in the output. Please answer me how I scrap the dynamic data from website.