INNER CODE UNIT · Python

page

wkaisertexas/tiktok-uploader · src/tiktok_uploader/auth.py:223

    page = page or get_browser(*args, **kwargs)

    cookies = {}
    for account in accounts:
        username, password = get_username_and_password(account)

        cookies[username] = login(page, username, password)

    return cookies


def login(page: Page, username: str, password: str) -> list[Cookie]:
    """
    Logs in the user using the email and password
    """
    assert username and password, "Username and password are required"

    # checks if the browser is on TikTok

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…