Communitygithub.com

Web Yu-pri CLI

透過驅動真實瀏覽器 UI,在命令列中使用日本郵政 Web Yu-pri 進行登入、檢查、螢幕截圖、乾執行計畫及內容表格填寫。

Web Yu-pri CLI 是什麼?

此技能提供一個命令列介面,用於自動化與日本郵政 Web Yu-pri 標籤輸入系統(網址為 `https://mgr.post.japanpost.jp/C30P01Action.do`)的互動,特別適用於重複性的內容明細輸入。它透過 Playwright 驅動實際的 Chrome 瀏覽器,確保操作如同真實使用者一般,從而避免觸發網站防護機制。支援的功能包括:使用持久化設定檔開啟登入頁面(以便使用者手動輸入憑證)、檢查目前狀態、擷取頁面截圖與 HTML、規劃裝運物品(使用 JSON 或 CSV 格式)、以及使用乾執行模式(不會實際提交)填寫內容表格。內建安全規則,例如:不在指令或日誌中記錄憑證、填寫前必須使用 `--dry-run` 驗證、絕不點擊最終的出貨確認或購買按鈕。此工具可大幅簡化國際包裹的填單流程,尤其適合需要維護多件物品明細的使用者。

相容平台~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

>-

相關技能