mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-02-06 23:21:33 +08:00
fix: 修复部分变量命名语义不明确
This commit is contained in:
@@ -82,14 +82,14 @@ class XHSClient:
|
||||
|
||||
async def ping(self) -> bool:
|
||||
"""get a note to check if login state is ok"""
|
||||
utils.logger.info("begin to ping xhs...")
|
||||
utils.logger.info("Begin to ping xhs...")
|
||||
ping_flag = False
|
||||
try:
|
||||
note_card: Dict = await self.get_note_by_keyword(keyword="小红书")
|
||||
if note_card.get("items"):
|
||||
ping_flag = True
|
||||
except Exception as e:
|
||||
utils.logger.error(f"ping xhs failed: {e}")
|
||||
utils.logger.error(f"Ping xhs failed: {e}, and try to login again...")
|
||||
ping_flag = False
|
||||
return ping_flag
|
||||
|
||||
|
||||
Reference in New Issue
Block a user