Use Japan Post Web Yu-pri from a CLI by driving the real browser UI for login, inspection, screenshots, dry-run planning, and contents-form filling.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-skills-f5edec0f7652 ,按照其中的说明把「cli-anything-web-yu-pri」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Use this skill when a task involves Japan Post Web Yu-pri label entry at
https://mgr.post.japanpost.jp/C30P01Action.do, especially repetitive contents
line entry.
pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=web-yu-pri/agent-harness
If no browser is found:
python -m playwright install chromium
open-login so the user can log in manually in the persistent profile.contents fill ... --dry-run --json before live form filling.cli-anything-web-yu-pri --json doctor
cli-anything-web-yu-pri open-login
cli-anything-web-yu-pri --json status --url https://mgr.post.japanpost.jp/M060800.do
cli-anything-web-yu-pri --json plan items.json
cli-anything-web-yu-pri --json contents fill items.json --dry-run
cli-anything-web-yu-pri --json contents fill items.json --total-value 17000
JSON:
{
"items": [
{"description": "Award plaque", "value": 8000, "quantity": 1, "country": "KR"},
{"description": "Certificate", "value": 9000, "quantity": 1, "country": "KR"}
]
}
CSV headers can use these aliases:
description, desc, content, contents, item, name, pkgvalue, declared_value, cost, price, amount, yen, jpyquantity, qty, num, countcountry, country_code, country_of_origin, origin, couCd, cou_cdhs_code, hs, hscode, hsCodeBy default, value is treated as the line declared value. Use --value-mode unit
when value should be multiplied by quantity.
cli-anything-web-yu-pri --json selectors
cli-anything-web-yu-pri snapshot --url https://mgr.post.japanpost.jp/M060800.do -o page.png --html-output page.html
Known contents-page controls:
#M060800_itemBean_pkg#M060800_itemBean_cost_value#M060800_itemBean_num_value#M060800_itemBean_couCd#M060800_itemBean_hsCode#M060800_shippingBean_pkgType#M060800_shippingBean_pkgTotalPrice_value#M060800_ShippingBean_dangersubmitCommand('itemAdd2')