I am trying to retrieve users reviews related information from google play store. I am interested in gathering reviewer name, reviewer text, reviewer rating and review date. I am using selenium webdriver for retrieving infromation. Here is my code:
baseurl='https://play.google.com/store/apps/details?id=com.zihua.android.mytracks&hl=en&showAllReviews=true'
driver.get(baseurl)
person_info = driver.find_elements_by_xpath("//div[@class='d15Mdf bAhLNe']")
for person in person_info:
name = person.find_element_by_xpath("//span[@class='X43Kjb']").text
review = person.find_element_by_xpath("//div[@class='UD7Dzf']/span").text
print(name)
print(review)
The problem with my code is it returns the first name of the reviewers and its review throughout the loop. Could anyone guide me where am I making the mistake?