修复/reel/视频点赞

This commit is contained in:
Your Name
2026-02-09 12:41:40 +08:00
parent c235f21a0c
commit 7ecfc5b376

View File

@@ -310,7 +310,7 @@ def playwright_like(cookies, target_url):
button_xpath = '//span[@data-ad-rendering-role="like_button"][1]' button_xpath = '//span[@data-ad-rendering-role="like_button"][1]'
elif '/reel/' in target_url: elif '/reel/' in target_url:
# 短视频类型 # 短视频类型
button_xpath = '//div[@class="__fb-dark-mode x1afcbsf x1uhb9sk x1swf91x"]//div[@aria-label="Like"]//div[@aria-label="Like"]' button_xpath = '//div[@aria-label="Like"]'
else: else:
raise OperationFailed(f'不支持的帖子类型POST: {target_url}') raise OperationFailed(f'不支持的帖子类型POST: {target_url}')