mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2025-11-25 03:15:17 +08:00
fix: 修复B站搜索Field命名 bug
refactor: ping接口统一更换为pong
This commit is contained in:
@@ -86,7 +86,7 @@ class DOUYINClient:
|
||||
return await self.request(method="POST", url=f"{self._host}{uri}", data=data, headers=headers)
|
||||
|
||||
@staticmethod
|
||||
async def ping(browser_context: BrowserContext) -> bool:
|
||||
async def pong(browser_context: BrowserContext) -> bool:
|
||||
_, cookie_dict = utils.convert_cookies(await browser_context.cookies())
|
||||
# todo send some api to test login status
|
||||
return cookie_dict.get("LOGIN_STATUS") == "1"
|
||||
|
||||
Reference in New Issue
Block a user