Skip to content

Instantly share code, notes, and snippets.

@oneroyalace
Created August 7, 2024 02:03
Show Gist options
  • Save oneroyalace/d2031eba989c5b41e88f82034c4c4b95 to your computer and use it in GitHub Desktop.
Save oneroyalace/d2031eba989c5b41e88f82034c4c4b95 to your computer and use it in GitHub Desktop.
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