From 76d2c33963e1a9cfe60b58071ff33cbd2d9d1e4b Mon Sep 17 00:00:00 2001 From: gaoxu Date: Fri, 16 Aug 2024 14:39:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E6=8A=96=E9=9F=B3web=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=94=B9=E7=89=88=EF=BC=8C=E6=97=A0=E6=B3=95=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E4=B8=8A=E4=BC=A0=E6=8C=89=E9=92=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uploader/douyin_uploader/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uploader/douyin_uploader/main.py b/uploader/douyin_uploader/main.py index 26efe96..c0c61c7 100644 --- a/uploader/douyin_uploader/main.py +++ b/uploader/douyin_uploader/main.py @@ -105,7 +105,7 @@ class DouYinVideo(object): douyin_logger.info(f'[-] 正在打开主页...') await page.wait_for_url("https://creator.douyin.com/creator-micro/content/upload") # 点击 "上传视频" 按钮 - await page.locator("[name='upload-btn']").set_input_files(self.file_path) + await page.locator(".container-F4b8d7 input").set_input_files(self.file_path) # 等待页面跳转到指定的 URL while True: From 5e7ea3c5ba56c5907af6262dc4ed3dacca5d9e31 Mon Sep 17 00:00:00 2001 From: snailRun-hard Date: Fri, 16 Aug 2024 17:58:52 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E6=8A=96=E9=9F=B3web=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=94=B9=E7=89=88=EF=BC=8C=E5=85=BC=E5=AE=B9=E4=B8=80?= =?UTF-8?q?=E4=B8=8B=E9=A1=B5=E9=9D=A2=E5=85=83=E7=B4=A0=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uploader/douyin_uploader/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uploader/douyin_uploader/main.py b/uploader/douyin_uploader/main.py index c0c61c7..8dc0dc7 100644 --- a/uploader/douyin_uploader/main.py +++ b/uploader/douyin_uploader/main.py @@ -105,7 +105,7 @@ class DouYinVideo(object): douyin_logger.info(f'[-] 正在打开主页...') await page.wait_for_url("https://creator.douyin.com/creator-micro/content/upload") # 点击 "上传视频" 按钮 - await page.locator(".container-F4b8d7 input").set_input_files(self.file_path) + await page.locator("div[class^='container'] input").set_input_files(self.file_path) # 等待页面跳转到指定的 URL while True: