fix: 移出快手 client 多余的代码

This commit is contained in:
Relakkes 2023-11-26 22:11:06 +08:00
parent 609c3f0673
commit 62534d7ee2
1 changed files with 0 additions and 22 deletions

View File

@ -122,28 +122,6 @@ class KuaiShouClient:
} }
return await self.post("", post_data) return await self.post("", post_data)
async def get_video_sub_comments(
self, note_id: str,
root_comment_id: str,
num: int = 30, cursor: str = ""
):
"""
get note sub comments
:param note_id: note id you want to fetch
:param root_comment_id: parent comment id
:param num: recommend 30, if num greater 30, it only return 30 comments
:param cursor: last you get cursor, defaults to ""
:return: {"has_more": true,"cursor": "6422442d000000000700dcdb",comments: [],"user_id": "63273a77000000002303cc9b","time": 1681566542930}
"""
uri = "/api/sns/web/v2/comment/sub/page"
params = {
"note_id": note_id,
"root_comment_id": root_comment_id,
"num": num,
"cursor": cursor,
}
return await self.get(uri, params)
async def get_video_all_comments(self, photo_id: str, crawl_interval: float = 1.0, is_fetch_sub_comments=False, async def get_video_all_comments(self, photo_id: str, crawl_interval: float = 1.0, is_fetch_sub_comments=False,
callback: Optional[Callable] = None, ): callback: Optional[Callable] = None, ):
""" """