Merge pull request #44 from snailRun-hard/main

fix: 抖音web页面改版,无法获取上传按钮的问题
This commit is contained in:
Alleria
2024-08-16 17:59:32 +08:00
committed by GitHub
+1 -1
View File
@@ -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("div[class^='container'] input").set_input_files(self.file_path)
# 等待页面跳转到指定的 URL
while True: