Skip to content

Instantly share code, notes, and snippets.

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