Initial Commit
This commit is contained in:
24
.gitignore
vendored
Normal file
24
.gitignore
vendored
Normal file
@@ -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/
|
||||
17
crawlingrrk.py
Normal file
17
crawlingrrk.py
Normal 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)
|
||||
4
requirements.txt
Normal file
4
requirements.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
greenlet==3.3.0
|
||||
playwright==1.57.0
|
||||
pyee==13.0.0
|
||||
typing_extensions==4.15.0
|
||||
Reference in New Issue
Block a user