I am trying to scrape the movie list. For some reason i am getting no values in the movies vector. I am trying to the movies releases this week. Any suggestions?
library(curl)
library(XML)
movies<- xpathSApply(htmlTreeParse("http://www.imdb.com", useInternalNodes = TRUE, encoding='UTF-8'), "//div[2]/div[5]/span/div[1]/div/div/div", xmlValue)
movies<- data.frame(movies)
Aucun commentaire:
Enregistrer un commentaire