tiktok-uploader icon indicating copy to clipboard operation
tiktok-uploader copied to clipboard

Error when running script with my cookies

Open TheOverflowProgrammer opened this issue 9 months ago • 2 comments

Good afternoon everyone, I encountered the following problem: when I try to run a script with my cookies, which I made myself, I get this error: tiktok_uploader.auth.InsufficientAuth: Insufficient authentication:

> TikTok uses cookies to keep track of the user's authentication or session.

Either:
    - Use a cookies file passed as the `cookies` argument
        - easily obtained using https://github.com/kairi003/Get-cookies.txt-LOCALLY
    - Use a cookies list passed as the `cookies_list` argument
        - can be obtained from your browser's developer tools under storage -> cookies
        - only the `sessionid` cookie is required

Please help me solve my problem

TheOverflowProgrammer avatar May 05 '24 10:05 TheOverflowProgrammer

I solved the problem by removing the \t argument from the split() function of the get_cookies() method in the AuthBackend class

TheOverflowProgrammer avatar May 05 '24 11:05 TheOverflowProgrammer

@TheOverflowProgrammer This script uses the Netscape cookie format for its cookies. Consider using cookies.txt to get your cookies file if any issue persists.

How to use the extension:

  1. Add the extension to your browser
  2. Go to tikrok.com and log in
  3. Click the extension
  4. Click export as
  5. Choose a location to save the cookie file

You can then pass your cookie file in this uploader

If your issue is resolved, please close the issue

Jamadoo avatar May 05 '24 20:05 Jamadoo