Skip to content

Instantly share code, notes, and snippets.

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