Skip to content

Instantly share code, notes, and snippets.

@RizqiEka
Created October 18, 2020 00:45
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/b8087c4aa407b86d4ff5a609d8307754 to your computer and use it in GitHub Desktop.
Save RizqiEka/b8087c4aa407b86d4ff5a609d8307754 to your computer and use it in GitHub Desktop.
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