16 lines
370 B
Python
16 lines
370 B
Python
import asyncio
|
|
from pathlib import Path
|
|
|
|
from conf import BASE_DIR
|
|
from uploader.ks_uploader.main import ks_setup
|
|
|
|
|
|
def login_to_kuaishou():
|
|
account_file = Path(BASE_DIR / "cookies" / "kuaishou_creator1.json")
|
|
account_file.parent.mkdir(exist_ok=True)
|
|
asyncio.run(ks_setup(str(account_file), handle=True))
|
|
|
|
|
|
if __name__ == '__main__':
|
|
login_to_kuaishou()
|