From fb627e9c7ec26c261f2fece4dc7c24600f525682 Mon Sep 17 00:00:00 2001 From: work Date: Fri, 27 Jun 2025 09:34:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BD=AC=E5=8F=91/permalink/?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= 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 4210cfb..30d97ed 100644 --- a/spider/task.py +++ b/spider/task.py @@ -1450,7 +1450,7 @@ def playwright_share(cookies, target_url, content): try: page.goto(target_url) check_account_status(page, parse_cookies(cookies)) - if 'permalink.php?story_fbid' in target_url or '/posts/' in target_url: + if 'permalink.php?story_fbid' in target_url or '/posts/' in target_url or "/permalink/" in target_url: # 文字或图片类型 share_button = '//div[@aria-label="Send this to friends or post it on your profile."]//span[@data-ad-rendering-role="share_button"]' input_box = '//form[@method="POST" and count(@*) = 1]/div/div/div[2]'