mirror of
https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git
synced 2025-04-20 04:19:57 +08:00
🎨: Fix endpoint /api/tiktok/web/fetch_user_profile
parameters
This commit is contained in:
parent
f64e828d5b
commit
6e7461fae9
@ -55,7 +55,7 @@ async def fetch_one_video(request: Request,
|
||||
response_model=ResponseModel,
|
||||
summary="获取用户的个人信息/Get user profile")
|
||||
async def fetch_user_profile(request: Request,
|
||||
uniqueId: str = Query(example="tiktok", description="用户uniqueId/User uniqueId"),
|
||||
uniqueId: str = Query(default="tiktok", description="用户uniqueId/User uniqueId"),
|
||||
secUid: str = Query(default="", description="用户secUid/User secUid"),):
|
||||
"""
|
||||
# [中文]
|
||||
|
@ -348,10 +348,10 @@ class TikTokWebCrawler:
|
||||
# print(response)
|
||||
|
||||
# 获取用户的个人信息
|
||||
secUid = "MS4wLjABAAAAfDPs6wbpBcMMb85xkvDGdyyyVAUS2YoVCT9P6WQ1bpuwEuPhL9eFtTmGvxw1lT2C"
|
||||
uniqueId = "c4shjaz"
|
||||
response = await self.fetch_user_profile(secUid, uniqueId)
|
||||
print(response)
|
||||
# secUid = "MS4wLjABAAAAfDPs6wbpBcMMb85xkvDGdyyyVAUS2YoVCT9P6WQ1bpuwEuPhL9eFtTmGvxw1lT2C"
|
||||
# uniqueId = "c4shjaz"
|
||||
# response = await self.fetch_user_profile(secUid, uniqueId)
|
||||
# print(response)
|
||||
|
||||
# 获取用户的作品列表
|
||||
# secUid = "MS4wLjABAAAAfDPs6wbpBcMMb85xkvDGdyyyVAUS2YoVCT9P6WQ1bpuwEuPhL9eFtTmGvxw1lT2C"
|
||||
|
Loading…
x
Reference in New Issue
Block a user