Skip to content

Commit

Permalink
increase time selenium
Browse files Browse the repository at this point in the history
  • Loading branch information
tricktx committed Sep 21, 2023
1 parent 97a0ed3 commit b1a3dce
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pipelines/datasets/br_stf_corte_aberta/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ def web_scrapping():

options.add_argument("--headless=new")
driver = webdriver.Chrome(options=options)
time.sleep(10)
driver.get(stf_constants.STF_LINK.value)
time.sleep(10)
time.sleep(50)
driver.get("https://transparencia.stf.jus.br/extensions/decisoes/decisoes.html")
time.sleep(50)
driver.maximize_window()
time.sleep(10)
driver.find_element("xpath", '//*[@id="aba-4"]').click()
time.sleep(10)
time.sleep(50)
driver.find_element("xpath", '//*[@id="EXPORT-BUTTON-2"]/button').click()
time.sleep(10)
time.sleep(50)


def read_csv():
Expand Down

0 comments on commit b1a3dce

Please sign in to comment.