Created
August 7, 2024 02:03
-
-
Save oneroyalace/d2031eba989c5b41e88f82034c4c4b95 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from selenium.webdriver.common.by import By | |
import time | |
driver.get(url) | |
time.sleep(2) | |
link_pdf = driver.find_element(By.XPATH, "/html/body/div[1]/div[3]/div/main/article/div/div/div/div[3]/div[1]/table/tbody/tr[15]/td[2]/a").get_attribute('href') | |
# link_pdf = ... | |
driver.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment