Initial Commit

This commit is contained in:
=
2025-12-22 22:22:24 +03:30
commit b7ff6cb119
3 changed files with 45 additions and 0 deletions

17
crawlingrrk.py Normal file
View File

@@ -0,0 +1,17 @@
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)