meal-subsidy

2号人事部餐补申请自动化。触发方式:"申请餐补"查昨天;"申请4月7日餐补"查指定日期(默认当年);"申请4月餐补"查整月批量申请(默认当年);"本周餐补"查本周批量申请。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "meal-subsidy" with this command: npx skills add meal-subsidy

餐补申请自动化

自动读取2号人事部考勤,判断下班时间是否满足餐补条件,全自动填写并提交。

申请条件

下班时间餐补
≥ 20:3020元
00:00 ~ 06:00(跨天)40元
其他不申请

跨天:结束时间日期+1天(如 00:30 → 第二天00:30)


触发指令(对小特说)

指令效果
"申请餐补"查昨天,满足则申请
"申请4月7日餐补"查指定日期(默认当年,如2026年4月7日)
"申请4月餐补"查整个4月(默认当年),批量申请所有满足条件的日期
"本周餐补"批量申请本周所有满足条件的日期

快速开始(3步)

第一步:安装依赖

pip install selenium

第二步:启动 Chrome 远程调试(只需一次)

"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222

Mac:/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222

打开后扫码登录 https://i-wework.2haohr.com/desk/home,之后运行无需重复登录。

如果报错 "cannot connect to chrome",先执行此步骤

第三步:运行脚本

# 申请指定日期(默认昨天)
python meal_subsidy.py --date 2026-04-07

# 申请整月(批量)
python meal_month.py 2026 4

截图说明

文件内容
screenshots/attendance_YYYYMMDD.png考勤截图(上传用)
screenshots/meal_form.png餐补表单截图
screenshots/meal_before_submit.png提交前确认
screenshots/after_submit.png提交后截图
screenshots/attendance_late_YYYYMM.csv申请记录表

依赖

依赖说明
Python 3.8+语言环境
seleniumpip install selenium
Chrome 浏览器系统已安装即可
ChromeDriver自动查找,无需手动安装

常见问题

Q: 报错 "cannot connect to chrome at 127.0.0.1:9222" A: Chrome 没有以远程调试模式启动。按第二步重新启动 Chrome。

Q: 提示 "登录超时" A: 需要先在 Chrome 里手动扫码登录一次(只需一次)。

Q: 提交流程正常但上传的截图不对 A: 请确保 Chrome 打开了考勤页面(显示日期和下班时间),再运行脚本。


技术说明

  • iView picker 填写:直接 send_keys 无效,必须用 JS 原生 setter 触发 Vue 响应式
  • Chrome 复用:自动连接端口 9222,已登录状态不丢失
  • iframe 处理:餐补表单在 iframe 内,JS 直接跨帧操作 .ivu-date-picker
  • 自动启动:端口 9222 不可用时,脚本会自动启动新的带调试端口的 Chrome

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated