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]'