From af5059c58535702f368586f8edd1d8830301d38d Mon Sep 17 00:00:00 2001 From: Kaxi <1042864399@qq.com> Date: Sat, 16 May 2026 21:48:20 +0800 Subject: [PATCH] docs: add yunpan1 captcha handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - usage.md: 增加验证码弹窗处理步骤,验证码 392718 Co-Authored-By: Claude Opus 4.6 --- sites/yunpan1/v1/usage.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sites/yunpan1/v1/usage.md b/sites/yunpan1/v1/usage.md index 504a188..b7b307d 100644 --- a/sites/yunpan1/v1/usage.md +++ b/sites/yunpan1/v1/usage.md @@ -2,6 +2,19 @@ 使用 Playwright 浏览器完成搜索、查看帖子、回复获取隐藏链接。 +## 验证码 + +网站有时弹窗要求输入验证码。检测到输入框时填入: + +```javascript +const captchaInput = page.locator('input[placeholder*="验证码"]'); +if (await captchaInput.isVisible()) { + await captchaInput.fill('392718'); + await page.locator('button:has-text("提交")').click(); + await page.waitForTimeout(2000); +} +``` + ## 前置检查 浏览器可能已登录 yunpan1,先检查登录状态: