MCPcopy
hub / github.com/dreammis/social-auto-upload / tiktok_setup

Function tiktok_setup

tk_uploader/main.py:38–45  ·  view source on GitHub ↗
(account_file, handle=False)

Source from the content-addressed store, hash-verified

36
37
38async def tiktok_setup(account_file, handle=False):
39 account_file = get_absolute_path(account_file, "tk_uploader")
40 if not os.path.exists(account_file) or not await cookie_auth(account_file):
41 if not handle:
42 return False
43 print('[+] cookie file is not existed or expired. Now open the browser auto. Please login with your way(gmail phone, whatever, the cookie file will generated after login')
44 await get_tiktok_cookie(account_file)
45 return True
46
47
48async def get_tiktok_cookie(account_file):

Callers 2

get_tk_cookie.pyFile · 0.90

Calls 3

get_absolute_pathFunction · 0.90
get_tiktok_cookieFunction · 0.85
cookie_authFunction · 0.70

Tested by

no test coverage detected