Files
rakuten-api/account.yaml.example
q792602257andClaude Opus 4.6 65e3ed31f8 交易服务收敛为仅 rakuten:移除 rakuma 登录态与下单入口
trading 不再管理 ラクマ 的购物车购买、支付与订单监控。删除 auth_site /
auth_session / login_runner / models.AuthSite 中的 rakuma 分支与常量、
account.yaml.example 的 rakuma 段,并清理相关测试。scraping 侧的
ラクマ 抓取 API(/api/rakuma/*)保留不动。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-28 11:50:07 +08:00

35 lines
1.6 KiB
Plaintext

# 自动登录账号配置
#
# 复制为 account.yaml(已在 .gitignore 内)后填入真实凭据。
# account.yaml 不入库,含明文密码,绝不可提交。
#
# 字段说明:
# id (必填) 本地标识,命令行 --account 用它选择账号
# username (必填) 登录用户名(邮箱或会员 ID)
# password (必填) 登录密码明文。仅在本文件与站点之间流转,不入代码/日志/记忆
# user_data_dir (可选) Playwright 持久化浏览器目录。相对项目根或绝对路径。
# 不填则默认 .browser-data/<site>-<id>
# state_filename(可选) storage_state 落盘文件名,放在 settings.auth_state_dir。
# 不填则按 id 派生;数组首项若也没填,回退到 <site>_state.json
# 以兼容现有 AuthSession/SiteInteractor
# default (可选) true 标记默认账号;--account 不指定时用此项;无标记用数组首项
#
# 用法:
# .venv/Scripts/python.exe scripts/login.py --site rakuten
# # 用 default=true 或数组首项
# .venv/Scripts/python.exe scripts/login.py --site rakuten --account trdian022
# .venv/Scripts/python.exe scripts/login.py --site all --all-accounts
# # 依次登录每个站点所有账号
rakuten:
- id: primary
username: your-email@example.com
password: REPLACE_ME
# user_data_dir: .browser-data/rakuten-primary
# state_filename: rakuten_state.json
default: true
# 多账号示例:
# - id: secondary
# username: another@example.com
# password: REPLACE_ME