From 62534d7ee25df4407fd7da3ea949eeac15bf61b6 Mon Sep 17 00:00:00 2001 From: Relakkes Date: Sun, 26 Nov 2023 22:11:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E5=87=BA=E5=BF=AB=E6=89=8B=20c?= =?UTF-8?q?lient=20=E5=A4=9A=E4=BD=99=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- media_platform/kuaishou/client.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/media_platform/kuaishou/client.py b/media_platform/kuaishou/client.py index 34f08ef..3bd19e6 100644 --- a/media_platform/kuaishou/client.py +++ b/media_platform/kuaishou/client.py @@ -122,28 +122,6 @@ class KuaiShouClient: } 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, callback: Optional[Callable] = None, ): """