| 1 | import asyncio |
| 2 | from pathlib import Path |
| 3 | |
| 4 | from conf import BASE_DIR |
| 5 | from uploader.douyin_uploader.main import douyin_setup |
| 6 | |
| 7 | if __name__ == '__main__': |
| 8 | account_file = Path(BASE_DIR / "cookies" / "douyin_uploader" / "account.json") |
| 9 | account_file.parent.mkdir(exist_ok=True) |
| 10 | cookie_setup = asyncio.run(douyin_setup(str(account_file), handle=True)) |
| 11 |