Created
October 18, 2020 00:49
-
-
Save RizqiEka/166bc2cb614c569a8910a89eb8cb071b to your computer and use it in GitHub Desktop.
ZoRestAddtInfo
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 Additional Information | |
addt_info_list = [] | |
addt_info_bigelt = driver.find_element_by_xpath("""/html/body/div[1]/div[2]/main/div/section[4]/section/section/article[1]/section[2]/div[3]""") | |
addt_info_eltlist = addt_info_bigelt.find_elements_by_tag_name('p') | |
for addt_info_anchor in addt_info_eltlist: | |
addt_info_text = addt_info_anchor.text | |
addt_info_list.append(addt_info_text) | |
rest_info.append(addt_info_list) | |
print(f'Scraping Restaurant Additional Info - {name} - {addt_info_text} - OK') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment