18 lines
554 B
Python
18 lines
554 B
Python
from time import sleep
|
|
from playwright.sync_api import sync_playwright
|
|
|
|
pw = sync_playwright().start()
|
|
firefox = pw.firefox.launch(headless=False)
|
|
context = firefox.new_context(ignore_https_errors=True)
|
|
page = context.new_page()
|
|
|
|
|
|
page.goto(
|
|
"https://rrk.ir/ords/r/rrs/rrs-front/%D8%AF%D8%A7%D8%AF%D9%87-%D8%A8%D8%A7%D8%B2"
|
|
)
|
|
page.locator("#P199_SABTNODATE_AZ").fill("1404/09/20")
|
|
page.locator("#P199_NEWSPAPERDATE_AZ").fill("1404/10/01")
|
|
page.locator("#B912476867105247978").click()
|
|
valueList = page.locator(".a-GV-table ngh(1) tbody tr")
|
|
sleep(10)
|