From 848f21b609b3d214d837e079148ced55f3045f38 Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Fri, 6 Jun 2025 22:45:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=94=B9playwright=20?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE=E5=8E=BB=E6=8E=89=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=97=B6=E7=9A=84=E4=BB=A3=E7=90=86=E5=92=8C?= =?UTF-8?q?=E6=9C=89=E5=A4=B4=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report_video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report_video.py b/report_video.py index d7f54ca..5aac67e 100644 --- a/report_video.py +++ b/report_video.py @@ -87,7 +87,7 @@ class DailymotionClient: EMAIL = "copyright@qiyi.com" PASSWORD = "ppsIQIYI2018@" - def __init__(self, headless: bool = False): + def __init__(self, headless: bool = True): self.email = self.EMAIL self.password = self.PASSWORD self.headless = headless @@ -96,7 +96,7 @@ class DailymotionClient: self._pw = sync_playwright().start() self.browser: Browser = self._pw.chromium.launch( headless=self.headless, - proxy={'server':'http://127.0.0.1:7890'} + # proxy={'server':'http://127.0.0.1:7890'} ) self.context = self.browser.new_context( user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) "