title: Web-scraping in r. How to scrape the data from ("+More" etc).?
body: <p>Suppose I want to get information about Amenities from this webpage (<a href="https://www.airbnb.com/rooms/6676364" rel="nofollow">https://www.airbnb.com/rooms/6676364</a>). It works ok only for visible part.
  But how to extract the rest from "+More" button?</p>
  
  <p>I tried the node from "source code" with the help of xpathSApply, but it returns me "+more".
  Do you know the solution of this problem?</p>
  
  <p>My RSelenium approach:</p>
  
  <pre><code>url &lt;- "https://www.airbnb.com/rooms/12344760"
  library('RSelenium')
  pJS &lt;- phantom()
  library('XML')
  shell.exec(paste0("C:\\Users\\Daniil\\Desktop\\R-language,Python\\file.bat"))
  Sys.sleep(10)
  
  checkForServer()
  startServer()
  remDr &lt;- remoteDriver(browserName="chrome", port=4444)
  remDr$open(silent=T)
  
  remDr$navigate(url)
  var &lt;- remDr$findElement('id','details') ### extracting all table###
  
  vartxt &lt;- var$getElementAttribute("outerHTML")[[1]]
  varxml &lt;- htmlParse(vartxt, useInternalNodes=T)
  Amenities &lt;- xpathSApply(varxml,"//div[@class = expandable-content expandable-content-full']",xmlValue)
  </code></pre>
  
  <p>Also doesn't work</p>