Scraping for Sentiment Analysis

Hey, I am working on a project where I have to do sentiment analysis on the reviews of particular movies. I have managed to get the scraping done on the first page but how could I get all the reviews distributed in more than 20 pages at once. I want to automate this process by using a loop or any other method. Thanks in advance.
Here is my code:


read_html("") %>%
  html_elements(xpath = "//div[@class='the_review']") %>% 

This code will get the reviews from the first page, but I want all the reviews. Please help!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.