home@pookz.com commited on
Commit ·
d9d8054
1
Parent(s): c911386
fix:粗糙修复,封面上传
Browse files
uploader/douyin_uploader/main.py
CHANGED
|
@@ -216,10 +216,11 @@ class DouYinVideo(object):
|
|
| 216 |
# 定位到上传区域并点击
|
| 217 |
await page.locator("div[class^='semi-upload upload'] >> input.semi-upload-hidden-input").set_input_files(thumbnail_path)
|
| 218 |
await page.wait_for_timeout(2000) # 等待2秒
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
await
|
|
|
|
| 223 |
|
| 224 |
async def set_location(self, page: Page, location: str = "杭州市"):
|
| 225 |
# todo supoort location later
|
|
|
|
| 216 |
# 定位到上传区域并点击
|
| 217 |
await page.locator("div[class^='semi-upload upload'] >> input.semi-upload-hidden-input").set_input_files(thumbnail_path)
|
| 218 |
await page.wait_for_timeout(2000) # 等待2秒
|
| 219 |
+
await page.locator("div[class^='extractFooter'] button:visible:has-text('完成')").click()
|
| 220 |
+
# finish_confirm_element = page.locator("div[class^='confirmBtn'] >> div:has-text('完成')")
|
| 221 |
+
# if await finish_confirm_element.count():
|
| 222 |
+
# await finish_confirm_element.click()
|
| 223 |
+
# await page.locator("div[class^='footer'] button:has-text('完成')").click()
|
| 224 |
|
| 225 |
async def set_location(self, page: Page, location: str = "杭州市"):
|
| 226 |
# todo supoort location later
|