快手指定创作者主页和二级评论

This commit is contained in:
HIRO
2024-06-13 14:49:07 +08:00
parent 645ec729f6
commit a001556ba7
12 changed files with 400 additions and 26 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ from tenacity import (RetryError, retry, retry_if_result, stop_after_attempt,
wait_fixed)
from base.base_crawler import AbstractLogin
import config
from tools import utils
@@ -57,7 +58,7 @@ class KuaishouLogin(AbstractLogin):
# click login button
login_button_ele = self.context_page.locator(
"xpath=//p[text()=' 登录 ']"
"xpath=//p[text()='登录']"
)
await login_button_ele.click()