autoUpload/examples/get_kuaishou_cookie.py
2025-09-08 09:32:45 +08:00

11 lines
339 B
Python

import asyncio
from pathlib import Path
from conf import BASE_DIR
from uploader.ks_uploader.main import ks_setup
if __name__ == '__main__':
account_file = Path(BASE_DIR / "cookies" / "ks_uploader" / "account.json")
account_file.parent.mkdir(exist_ok=True)
cookie_setup = asyncio.run(ks_setup(str(account_file), handle=True))