sau / examples /get_tencent_cookie.py
Edan233's picture
fix: 将 sau_backend 目录的文件,再挪回根目录,以防止大家迁移出现问题
0f24474
raw
history blame contribute delete
357 Bytes
import asyncio
from pathlib import Path
from conf import BASE_DIR
from uploader.tencent_uploader.main import weixin_setup
if __name__ == '__main__':
account_file = Path(BASE_DIR / "cookies" / "tencent_uploader" / "account.json")
account_file.parent.mkdir(exist_ok=True)
cookie_setup = asyncio.run(weixin_setup(str(account_file), handle=True))