add 百家號上傳實現

This commit is contained in:
home-dev-pookz
2025-04-12 18:42:45 +08:00
parent 8381d720a5
commit 2facef7509
11 changed files with 320 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
import asyncio
from pathlib import Path
from conf import BASE_DIR
from uploader.baijiahao_uploader.main import baijiahao_setup
if __name__ == '__main__':
account_file = Path(BASE_DIR / "cookies" / "baijiahao_uploader" / "account.json")
account_file.parent.mkdir(exist_ok=True)
cookie_setup = asyncio.run(baijiahao_setup(str(account_file), handle=True))