Код: Выделить всё
Main ID
Date of upload
Time of upload
Description
Secondary ID
[url=url/pdf1]
[/url]
[url=url/pdf2]
[/url]
Date of effect
Company name
Signature
Это мой код в настоящее время
Код: Выделить всё
from selenium import webdriver
from selenium.webdriver.common.by import By
PATH = "C:\\Program Files (x86)\\chromedriver.exe"
cService = webdriver.ChromeService(executable_path= PATH)
driver = webdriver.Chrome(service = cService)
href_links = []
date = "1.5.2025"
driver.get("https://mydata.com")
tableID = driver.find_element(By.CLASS_NAME,"DetailTable")
tbody = tableID.find_element(By.TAG_NAME,"tbody")
tr_elements = [tbody.find_elements(By.TAG_NAME,"tr") for tbody in tbodies]
for tr_element in tr_elements:
for td_element in tr_element:
pass
Подробнее здесь: https://stackoverflow.com/questions/793 ... conditions