腾讯重构一版

This commit is contained in:
home-dev-pookz
2026-04-22 19:04:20 +08:00
parent cccfea0232
commit ff0285c7a6
4 changed files with 943 additions and 244 deletions
+4 -3
View File
@@ -2,9 +2,10 @@ import asyncio
from pathlib import Path
from conf import BASE_DIR
from uploader.tencent_uploader.main import weixin_setup
from uploader.tencent_uploader.main import tencent_setup
if __name__ == '__main__':
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))
asyncio.run(tencent_setup(str(account_file), handle=True))