Created
October 18, 2020 00:45
-
-
Save RizqiEka/b8087c4aa407b86d4ff5a609d8307754 to your computer and use it in GitHub Desktop.
ZoRestType
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 Type | |
rest_type_list = [] | |
rest_type_eltlist = driver.find_elements_by_xpath("""/html/body/div[1]/div[2]/main/div/section[3]/section/section[1]/section[1]/div/a""") | |
for rest_type_anchor in rest_type_eltlist: | |
rest_type_text = rest_type_anchor.text | |
rest_type_list.append(rest_type_text) | |
rest_type.append(rest_type_list) | |
print(f'Scraping Restaurant Type - {name} - {rest_type_text} - OK') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment