@jamendoza wrote:
Hi, I’m going through the steps in the document " Beginner’s Guide on Web Scraping in R (using rvest) with hands-on example" Here
Stuck on step 4. my rank_data_html is an empty list, hence my rank_data vector is empty.
This is my code:url <- ‘http://www.imdb.com/search/title?count=100&release_date=2016,2016&title_type=feature’
webpage <- read_html(url)rank_data_html <- html_nodes(webpage,’.text-primary’)
rank_data <- html_text(rank_data_html)This is what I get when I type the variables in the console.
rank_data_html
{xml_nodeset (0)}
rank_data
character(0)I pretty much copied and pasted the code from the document.
Can’t figure out what’s wrong.
HELP!!!Thank you!!
Posts: 1
Participants: 1