Download examples/get_tencent_cookie.py from supff/sau: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/spaces/supff/sau/resolve/main/examples/get_tencent_cookie.py
- Command line
-
hf download hf://spaces/supff/sau/examples/get_tencent_cookie.py
-
curl -L -o get_tencent_cookie.py https://huggingface.co/spaces/supff/sau/resolve/main/examples/get_tencent_cookie.py
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)) | |