Merge pull request #79 from zeayal/main
Browse files- .DS_Store +0 -0
- uploader/douyin_uploader/main.py +2 -2
.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
uploader/douyin_uploader/main.py
CHANGED
|
@@ -120,7 +120,7 @@ class DouYinVideo(object):
|
|
| 120 |
# 判断是是否进入视频发布页面,没进入,则自动等待到超时
|
| 121 |
try:
|
| 122 |
await page.wait_for_url(
|
| 123 |
-
"https://creator.douyin.com/creator-micro/content/
|
| 124 |
break
|
| 125 |
except:
|
| 126 |
douyin_logger.info(f' [-] 正在等待进入视频发布页面...')
|
|
@@ -131,7 +131,7 @@ class DouYinVideo(object):
|
|
| 131 |
# 这里为了避免页面变化,故使用相对位置定位:作品标题父级右侧第一个元素的input子元素
|
| 132 |
await asyncio.sleep(1)
|
| 133 |
douyin_logger.info(f' [-] 正在填充标题和话题...')
|
| 134 |
-
title_container = page.
|
| 135 |
if await title_container.count():
|
| 136 |
await title_container.fill(self.title[:30])
|
| 137 |
else:
|
|
|
|
| 120 |
# 判断是是否进入视频发布页面,没进入,则自动等待到超时
|
| 121 |
try:
|
| 122 |
await page.wait_for_url(
|
| 123 |
+
"https://creator.douyin.com/creator-micro/content/post/video?enter_from=publish_page")
|
| 124 |
break
|
| 125 |
except:
|
| 126 |
douyin_logger.info(f' [-] 正在等待进入视频发布页面...')
|
|
|
|
| 131 |
# 这里为了避免页面变化,故使用相对位置定位:作品标题父级右侧第一个元素的input子元素
|
| 132 |
await asyncio.sleep(1)
|
| 133 |
douyin_logger.info(f' [-] 正在填充标题和话题...')
|
| 134 |
+
title_container = page.get_by_placeholder('作品标题')
|
| 135 |
if await title_container.count():
|
| 136 |
await title_container.fill(self.title[:30])
|
| 137 |
else:
|