Created
October 18, 2020 00:50
-
-
Save RizqiEka/9c722865c1b65707776324ade4aa8919 to your computer and use it in GitHub Desktop.
ZoRestLatLong
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 Latitude and Longitude | |
map_url = driver.find_element_by_xpath("""/html/body/div[1]/div[2]/main/div/section[4]/section/article/section/div[2]/a""").get_attribute("href") | |
lat = map_url[-28:-15] | |
long = map_url[-14:-1] | |
rest_lat.append(lat) | |
rest_long.append(long) | |
print(f'Scraping Restaurant Latitude-Longitude - {name} - {lat} - {long} - OK') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment