refactor(browser.py): 优化从浏览器读取 Cookie 功能

This commit is contained in:
JoeanAmier
2024-09-08 21:10:06 +08:00
parent 10164ba7b6
commit ab405f605c
8 changed files with 65 additions and 27 deletions

View File

@@ -372,7 +372,9 @@ class XHS:
@staticmethod
def read_browser_cookie(value: str | int) -> str:
return BrowserCookie.get(
value, domains=["xiaohongshu.com", ]) if value else ""
value,
domains=["xiaohongshu.com", ],
) if value else ""
# @staticmethod
# async def index(request):