fix: 抖音web页面改版,兼容一下页面元素无法获取的问题

This commit is contained in:
snailRun-hard
2024-08-16 17:58:52 +08:00
parent 76d2c33963
commit 5e7ea3c5ba
+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(".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: