Communitygithub.com

Web Yu-pri CLI

通过驱动真实浏览器界面,从命令行操作日本邮政Web Yu-pri,实现登录、检查、截图、预演计划以及填写内容表单。

Web Yu-pri CLI 是什么?

Web Yu-pri CLI 是一款专为开发者与AI代理设计的命令行工具,能够通过自动化浏览器操作,处理日本邮政Web Yu-pri(`https://mgr.post.japanpost.jp/C30P01Action.do`)的标签录入,尤其适用于重复性的物品明细录入任务。它支持登录、状态检查、截图、预演计划以及内容表单填写等功能,并严格遵循安全规则:不将凭证写入命令或日志,要求用户手动登录持久化配置文件,在实时填表前必须使用`--dry-run --json`进行预演。该工具支持JSON和CSV格式的物品文件,包含描述、价值、数量、原产国和HS编码等字段,并提供灵活的列名别名。用户可通过`--value-mode unit`控制价值是单行总值还是单价乘以数量。诊断命令如`selectors`和`snapshot`可辅助调试与选择器验证,确保操作准确无误。该工具不执行最终发货确认或购买按钮点击,以确保安全。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-web-yu-pri

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Web Yu-pri CLI 是做什么的?

当任务涉及日本邮政Web Yu-pri标签录入(位于https://mgr.post.japanpost.jp/C30P01Action.do),尤其是重复性的物品明细行录入时,使用本技能。

安装

pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=web-yu-pri/agent-harness

如果未找到浏览器:

python -m playwright install chromium

安全规则

  • 请勿将日本邮政的凭证放入命令、文件、日志或提示中。
  • 使用 open-login 让用户在持久化配置文件中手动登录。
  • 在实时填表前,运行 contents fill ... --dry-run --json。
  • 本CLI不点击最终发货确认或购买按钮。
  • 当源数据包含独立的奖项/分类行时,保持物品行分离,同时保留所请求的申报总额。

常用命令

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": "奖牌", "value": 8000, "quantity": 1, "country": "KR"},
    {"description": "证书", "value": 9000, "quantity": 1, "country": "KR"}
  ]
}

CSV表头可以使用以下别名:

  • description: description, desc, content, contents, item, name, pkg
  • value: value, declared_value, cost, price, amount, yen, jpy
  • quantity: quantity, qty, num, count
  • country: country, country_code, country_of_origin, origin, couCd, cou_cd
  • HS code: hs_code, hs, hscode, hsCode

默认情况下,value被视为单行申报价值。使用 --value-mode unit 时,价值将乘以数量。

选择器诊断

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

已知的内容页面控件:

  • #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_danger
  • submitCommand('itemAdd2')

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

相关技能