I am trying to scrape full reviews from this webpage. (Full reviews - after clicking the 'Read More' button). This I am doing using RSelenium. I am able to select and extract text from the first <p>
element, using the code
reviewNodes <- mybrowser$findElements(using = 'xpath', "//p[@id][1]")
which is for less text review.
But not able to extract full text reviews using the code
reviewNodes <- mybrowser$findElements(using = 'xpath', "//p[@id][2]")
or
reviewNodes <- mybrowser$findElements(using = 'xpath', "//p[@itemprop = 'reviewBody']")
It shows blank list elements. I don't know what is wrong. Please help me..
` children of their parents. Am I right?
– CiaPan Apr 01 '16 at 11:17