pookz@stme commited on
Commit ·
7d8ef8d
1
Parent(s): 3a63c55
1. 修复视频号cookie验证规则
Browse files
uploader/tencent_uploader/main.py
CHANGED
|
@@ -41,7 +41,7 @@ async def cookie_auth(account_file):
|
|
| 41 |
# 访问指定的 URL
|
| 42 |
await page.goto("https://channels.weixin.qq.com/platform/post/create")
|
| 43 |
try:
|
| 44 |
-
await page.wait_for_selector('div.title-name:has-text("
|
| 45 |
tencent_logger.error("[+] 等待5秒 cookie 失效")
|
| 46 |
return False
|
| 47 |
except:
|
|
|
|
| 41 |
# 访问指定的 URL
|
| 42 |
await page.goto("https://channels.weixin.qq.com/platform/post/create")
|
| 43 |
try:
|
| 44 |
+
await page.wait_for_selector('div.title-name:has-text("微信小店")', timeout=5000) # 等待5秒
|
| 45 |
tencent_logger.error("[+] 等待5秒 cookie 失效")
|
| 46 |
return False
|
| 47 |
except:
|