| 1 | # -*- coding: utf-8 -*- |
| 2 | """获取支付宝生活号 cookie:打开浏览器扫码登录后自动保存到 cookies/alipay_uploader/account.json""" |
| 3 | import asyncio |
| 4 | import sys |
| 5 | from pathlib import Path |
| 6 | |
| 7 | sys.path.insert(0, str(Path(__file__).resolve().parents[1])) |
| 8 | |
| 9 | from uploader.alipay_uploader.main import alipay_cookie_gen |
| 10 | |
| 11 | |
| 12 | async def main(): |
| 13 | account_file = Path(__file__).resolve().parents[1] / "cookies" / "alipay_uploader" / "account.json" |
| 14 | await alipay_cookie_gen(str(account_file)) |
| 15 | |
| 16 | |
| 17 | if __name__ == "__main__": |
| 18 | asyncio.run(main()) |
| 19 |