diff --git a/app/api/endpoints/tiktok_web.py b/app/api/endpoints/tiktok_web.py index ebd3c0b..ba5f69c 100644 --- a/app/api/endpoints/tiktok_web.py +++ b/app/api/endpoints/tiktok_web.py @@ -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"),): """ # [中文] diff --git a/crawlers/tiktok/web/web_crawler.py b/crawlers/tiktok/web/web_crawler.py index ce293a3..8fd2b37 100644 --- a/crawlers/tiktok/web/web_crawler.py +++ b/crawlers/tiktok/web/web_crawler.py @@ -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"