Skip to content

Instantly share code, notes, and snippets.

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