Created
October 18, 2020 00:43
-
-
Save RizqiEka/f782f1839aa4795fc3fa6c8eabd56110 to your computer and use it in GitHub Desktop.
ZoRestName
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
# Initialize Empty Lists that we will use to store the scraping data results | |
rest_name = [] | |
driver = webdriver.Chrome(chromepath) | |
# Scrape the data by looping through entries in DataFrame | |
for url in out_df_nd['Website']: | |
driver.get(url) | |
name_anchor = driver.find_element_by_tag_name('h1') | |
name = name_anchor.text | |
rest_name.append(name) | |
driver.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment