修复/reel/视频点赞
This commit is contained in:
@@ -310,7 +310,7 @@ def playwright_like(cookies, target_url):
|
||||
button_xpath = '//span[@data-ad-rendering-role="like_button"][1]'
|
||||
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:
|
||||
raise OperationFailed(f'不支持的帖子类型POST: {target_url}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user