增加转发/permalink/格式
This commit is contained in:
@@ -1450,7 +1450,7 @@ def playwright_share(cookies, target_url, content):
|
|||||||
try:
|
try:
|
||||||
page.goto(target_url)
|
page.goto(target_url)
|
||||||
check_account_status(page, parse_cookies(cookies))
|
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"]'
|
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]'
|
input_box = '//form[@method="POST" and count(@*) = 1]/div/div/div[2]'
|
||||||
|
|||||||
Reference in New Issue
Block a user