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

Multiple Account - Cookies

Open shandyisme opened this issue 9 months ago • 2 comments

Hi @wkaisertexas , this is really nice code, I've been using this for last few months.

I'm doing multiple accounts, creating 1 folder for each accounts (upload.py, cookies.txt, mp4 video), everytime I want to switch account (running from different folder), I need to re-download the cookies from get locally to use it in order to make it work, otherwise the tiktok won't login automatically using cookies.

Is there a way to use the cookies file back and forth?

Thank you

shandyisme avatar Apr 30 '24 01:04 shandyisme

You need one cookies.txt file per account. Your cookies file (among other things) contains a session token that identifies you as being logged in (effectively, this library is one big session token spoofing attack).

However, if you log out of one account and log back into another, logging out will invalidate the session tokens from your previous account.

I solved this in two ways:

  • use one browser (chrome, safari, edge) per account. You can stay signed in and everything is fine
  • Instead of signing out of accounts, clear your cookies. This will allow you to sign into a new account without signaling to TikTok that you logged out of your old one.

If you have any more questions, let me know!

wkaisertexas avatar Apr 30 '24 01:04 wkaisertexas

Instead of signing out of accounts, clear your cookies. This will allow you to sign into a new account without signaling to TikTok that you logged out of your old one.

This is really simple good solution. Problem solved. Now I can easily manage multiple account.

Thank you!

shandyisme avatar May 05 '24 05:05 shandyisme