From a51acc7ce01b6fe0361d046159222b3ee578ea9f Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Wed, 4 Jun 2025 22:31:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=BB=A5=E5=9C=A8=E8=A7=86=E9=A2=91=E5=A4=84=E7=90=86=E6=97=B6?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E6=88=AA=E5=9B=BE=E5=B9=B6=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report_video.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/report_video.py b/report_video.py index 2a015f1..0876db4 100644 --- a/report_video.py +++ b/report_video.py @@ -119,6 +119,9 @@ 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' + self.page.screenshot(path=file_path) + if self.page.query_selector("div.cf-turnstile[data-sitekey]"): ok = solve_turnstile_capsolver(self.page) if not ok: