commit b7ff6cb11961aea7393a9605780a26ec4527f75d Author: = <=> Date: Mon Dec 22 22:22:24 2025 +0330 Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5924335 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +**/__pycache__/ +driver/ +crawl-venv/ +playwright/driver/ +playwright.egg-info/ +build/ +dist/ +venv/ +.idea/ +**/*.pyc +env/ +htmlcov/ +.coverage* +.DS_Store +.vscode/ +.eggs +_repo_version.py +coverage.xml +junit/ +htmldocs/ +utils/docker/dist/ +Pipfile +Pipfile.lock +.venv/ \ No newline at end of file diff --git a/crawlingrrk.py b/crawlingrrk.py new file mode 100644 index 0000000..1177ca7 --- /dev/null +++ b/crawlingrrk.py @@ -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) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..6a3cfaf --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +greenlet==3.3.0 +playwright==1.57.0 +pyee==13.0.0 +typing_extensions==4.15.0