增加转发/permalink/格式

This commit is contained in:
work
2025-06-27 09:34:59 +08:00
parent 0d6b03ccb4
commit fb627e9c7e

View File

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