@@ -127,17 +127,23 @@ async def fetch_hashtag_video_list(self, ch_id: int, cursor: int, count: int):
127
127
return data
128
128
129
129
# 获取指定用户的粉丝列表数据 | Get follower list of specified user
130
- async def fetch_user_follower_list (self , sec_user_id : str , count : int , max_time : int ):
130
+ async def fetch_user_follower_list (self , sec_user_id : str , count : int = 20 , min_time : int = 0 , page_token : str = "" ):
131
131
endpoint = "/api/v1/tiktok/app/v3/fetch_user_follower_list"
132
132
data = await self .client .fetch_get_json (
133
- f"{ endpoint } ?sec_user_id={ sec_user_id } &count={ count } &max_time= { max_time } " )
133
+ f"{ endpoint } ?sec_user_id={ sec_user_id } &count={ count } &min_time= { min_time } &page_token= { page_token } " )
134
134
return data
135
135
136
136
# 获取指定用户的关注列表数据 | Get following list of specified user
137
- async def fetch_user_following_list (self , sec_user_id : str , count : int , max_time : int ):
137
+ async def fetch_user_following_list (self , sec_user_id : str , count : int = 20 , min_time : int = 0 , page_token : str = "" ):
138
138
endpoint = "/api/v1/tiktok/app/v3/fetch_user_following_list"
139
139
data = await self .client .fetch_get_json (
140
- f"{ endpoint } ?sec_user_id={ sec_user_id } &count={ count } &max_time={ max_time } " )
140
+ f"{ endpoint } ?sec_user_id={ sec_user_id } &count={ count } &min_time={ min_time } &page_token={ page_token } " )
141
+ return data
142
+
143
+ # 获取指定直播间的数据 | Get data of specified live room
144
+ async def fetch_live_room_info (self , room_id : str ):
145
+ endpoint = "/api/v1/tiktok/app/v3/fetch_live_room_info"
146
+ data = await self .client .fetch_get_json (f"{ endpoint } ?room_id={ room_id } " )
141
147
return data
142
148
143
149
# TikTok直播间排行榜 | Get live room ranking list
0 commit comments