From 9b9df26a3c793343962a67da04f376fe98f335f4 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 1 Feb 2026 16:49:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=91=E5=B8=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spider/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spider/task.py b/spider/task.py index a166b89..4734573 100644 --- a/spider/task.py +++ b/spider/task.py @@ -452,7 +452,7 @@ def playwright_post(cookies, content, image_key=None): if not image_key: page.click('''//span[contains(text(), "What's on your mind")]''') _edit_privacy(page) - page.type('''//div[contains(@aria-placeholder, "What's on your mind")]''', content, delay=50) + page.type('''//div[contains(@aria-placeholder, "What's on your mind")]''', content, delay=50, timeout=300000) page.click('//div[@aria-label="Post"]', timeout=300000) time.sleep(15) post_index = page.locator('//div[@aria-posinset="1"]//a[@role="link"]').nth(2)