first commit
This commit is contained in:
commit
8757705ea7
1488 files changed
+325179
No files matched your search
@@ -0,0 +1,24 @@
|
||||
from playwright.sync_api import sync_playwright
|
||||
|
||||
|
||||
def cmPage(playwright):
|
||||
browser = playwright.chromium.launch(
|
||||
headless=False,
|
||||
args=["--disable-blink-features=AutomationControlled", "--enable-automation"],
|
||||
)
|
||||
url = (
|
||||
"http://www.chinaunicombidding.cn/bidInformation/detail?id=1814155843256635392"
|
||||
)
|
||||
context = browser.new_context()
|
||||
page = context.new_page()
|
||||
with page.expect_response(
|
||||
"http://www.chinaunicombidding.cn/api/v1/bizAnno/getAnnoDetailed/*"
|
||||
) as pageJosnData:
|
||||
page.goto(url)
|
||||
print(pageJosnData.value.text())
|
||||
context.close()
|
||||
browser.close()
|
||||
|
||||
|
||||
with sync_playwright() as playwright:
|
||||
cmPage(playwright)
|
||||
Reference in new issue
Block a user