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