title: How to perform web scraping to get all the reviews of the an app in Google Play?
body: <p>I pretend to be able to get all the reviews that users leave on Google Play about the apps. I have this code that they indicated there <a href="https://stackoverflow.com/questions/50987622/web-scraping-in-r-through-google-playstore">Web scraping in R through Google playstore</a> . But the problem is that you only get the first 40 reviews. Is there a possibility to get all the comments of the app?</p>
  <p>`` `</p>
  <pre><code>#Loading the rvest package
  library(rvest)
  library(magrittr) # for the '%&gt;%' pipe symbols
  library(RSelenium) # to get the loaded html of 
  
  #Specifying the url for desired website to be scraped
  url &lt;- 'https://play.google.com/store/apps/details? 
  id=com.phonegap.rxpal&amp;hl=en_IN&amp;showAllReviews=true'
  
  # starting local RSelenium (this is the only way to start RSelenium that 
  is working for me atm)
  selCommand &lt;- wdman::selenium(jvmargs = c(&quot;- 
  Dwebdriver.chrome.verboseLogging=true&quot;), retcommand = TRUE)
  shell(selCommand, wait = FALSE, minimized = TRUE)
  remDr &lt;- remoteDriver(port = 4567L, browserName = &quot;firefox&quot;)
  remDr$open()
  
  # go to website
  remDr$navigate(url)
  
  # get page source and save it as an html object with rvest
  html_obj &lt;- remDr$getPageSource(header = TRUE)[[1]] %&gt;% read_html()
  
  # 1) name field (assuming that with 'name' you refer to the name of the 
  reviewer)
  names &lt;- html_obj %&gt;% html_nodes(&quot;.kx8XBd .X43Kjb&quot;) %&gt;% html_text()
  
  # 2) How much star they got 
  stars &lt;- html_obj %&gt;% html_nodes(&quot;.kx8XBd .nt2C1d [role='img']&quot;) %&gt;% 
  html_attr(&quot;aria-label&quot;)
  
  # 3) review they wrote
  reviews &lt;- html_obj %&gt;% html_nodes(&quot;.UD7Dzf&quot;) %&gt;% html_text()
  
  # create the df with all the info
  review_data &lt;- data.frame(names = names, stars = stars, reviews = reviews, 
  stringsAsFactors = F)
  </code></pre>
  <p>`` `</p>