Module genshin.utility.fs

File system related utilities.

Functions

def get_browser_cookies(browser: Optional[str] = None, *, cookie_file: Optional[str] = None, domains: Sequence[str] = ('mihoyo', 'hoyolab', 'hoyoverse'), allowed_cookies: Sequence[str] = ('ltuid', 'ltoken', 'account_id', 'cookie_token', 'ltoken_v2', 'ltmid_v2', 'cookie_token_v2', 'account_mid_v2')) ‑> Mapping[str, str]

Get hoyolab authentication cookies from your browser for later storing.

Available browsers: chrome, chromium, opera, edge, firefox.