Created
October 18, 2020 00:46
-
-
Save RizqiEka/b007df67826a7d0cfff0fd882a6a1898 to your computer and use it in GitHub Desktop.
ZoRestAreaAddress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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