Skip to content

Instantly share code, notes, and snippets.

@RizqiEka
Created October 18, 2020 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RizqiEka/b007df67826a7d0cfff0fd882a6a1898 to your computer and use it in GitHub Desktop.
Save RizqiEka/b007df67826a7d0cfff0fd882a6a1898 to your computer and use it in GitHub Desktop.
ZoRestAreaAddress
#Restaurant Area
rest_area_anchor = driver.find_element_by_xpath("""/html/body/div[1]/div[2]/main/div/section[3]/section/section[1]/section[1]/a""")
rest_area_text = rest_area_anchor.text
rest_area.append(rest_area_text)
print(f'Scraping Restaurant Area - {name} - {rest_area_text} - OK')
#Restaurant Address
rest_address_anchor = driver.find_element_by_xpath("""/html/body/div[1]/div[2]/main/div/section[4]/section/article/section/p""")
rest_address_text = rest_address_anchor.text
rest_address.append(rest_address_text)
print(f'Scraping Restaurant Address - {rest_address_text} - OK')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment