refactor: 移除异常处理以简化报告处理逻辑
This commit is contained in:
parent
e7a6df8e3e
commit
7ed3678811
@ -119,7 +119,7 @@ class DailymotionClient:
|
||||
self.page.goto(self.url, timeout=30000)
|
||||
self.page.wait_for_load_state("networkidle", timeout=30000)
|
||||
|
||||
file_path = f'screenshots/{str(int(time.time()))}_{title}_{link.split("/")[-1]}.png'
|
||||
file_path = f'screenshots/{str(int(time.time()))}.png'
|
||||
self.page.screenshot(path=file_path)
|
||||
|
||||
if self.page.query_selector("div.cf-turnstile[data-sitekey]"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user