(account_file, handle=False)
| 36 | |
| 37 | |
| 38 | async 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 | |
| 48 | async def get_tiktok_cookie(account_file): |
no test coverage detected