返回 Social Auto Upload
get_tk_cookie.py
根目录 / examples / get_tk_cookie.py
1 import asyncio
2 from pathlib import Path
3
4 from conf import BASE_DIR
5 from uploader.tk_uploader.main_chrome import tiktok_setup
6
7 if __name__ == '__main__':
8 account_file = Path(BASE_DIR / "cookies" / "tk_uploader" / "account.json")
9 account_file.parent.mkdir(exist_ok=True)
10 cookie_setup = asyncio.run(tiktok_setup(str(account_file), handle=True))
11
11 lines PYTHON