Skip to content

Instantly share code, notes, and snippets.

@kperry2215
Last active November 6, 2022 04:08
Show Gist options
  • Save kperry2215/84795f901d2741e7a9057a0070b8f753 to your computer and use it in GitHub Desktop.
Save kperry2215/84795f901d2741e7a9057a0070b8f753 to your computer and use it in GitHub Desktop.
from selenium import webdriver
import pandas as pd
#Website that we're going to scrape
url = "http://gts.co.jefferson.co.us/index.aspx"
# create a new Firefox session
driver = webdriver.Firefox(executable_path='C:/Users/kirst/Downloads/geckodriver-v0.32.0-win64/geckodriver.exe')
driver.implicitly_wait(30)
driver.get(url)
#Accept terms
accept_button = driver.find_element_by_id("ctl00_ContentPlaceHolder1_btnAcceptTerms")
accept_button.click()
#Wait 10 seconds for the load
driver.implicitly_wait(10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment