Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ZoRestType
#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
You can’t perform that action at this time.