← 返回
未分类 中文

China Holiday Calendar Sync

Discover and parse China's official holiday notices from gov.cn, normalize holiday and adjusted-workday rows, and apply low-frequency probing rules for futur...
从 gov.cn 发现并解析中国官方假期通知,归一化假期与调休工作日行,应用低频探测规则以应对未来...
joeyyyy0430 joeyyyy0430 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 397
下载
💾 0
安装
1
版本
#automationlatest#business-calendar#china-calendar#gov-cn#holiday-sync#latest#scheduling

概述

China Holiday Calendar Sync

Use only official gov.cn holiday notices as the source of truth for China holiday and adjusted-workday schedules.

Keep the workflow conservative:

  • Prefer configured notice_urls first.
  • Use China government policy search for discovery before any public-search fallback.
  • Parse official notice正文 into structured holiday/workday rows.
  • Treat future-year discovery as low-frequency work, not a daily poll.

Workflow

  1. Load configured notice URLs.
    • Reuse known official notice URLs from local config first.
    • For already-synced years, prefer local calendar storage instead of refetching the notice page.
  1. Discover missing future-year notices carefully.
    • Build exact queries around 国务院办公厅关于年部分节假日安排的通知.
    • Prefer China government policy search.
    • Accept only https://www.gov.cn/zhengce/content/... candidate pages.
    • Re-fetch the candidate and validate title/body before trusting it.
  1. Throttle discovery.
    • For future years, probe at most once per month.
    • Default probe window starts on the 15th of the month.
    • Cache both positive and negative discovery results for that month.
  1. Parse official notice content.
    • Extract holiday ranges such as 1月1日至3日.
    • Extract adjusted workdays such as 1月4日(周日)上班.
    • Emit normalized rows with date, is_holiday, is_workday, holiday_name, and source_url.
  1. Persist two layers separately.
    • Stable source mapping in notice_urls
    • Probe history in discovery_cache

Rules

  • Do not use third-party holiday calendars as authoritative data.
  • Do not fabricate future-year schedules before an official notice exists.
  • If a future year has not been published yet, return no URL and cache that negative check for the month.
  • If a year is already present in local holiday storage, do not refetch the official notice unless the caller explicitly wants a refresh.

References

Output Shape

Normalize notice parsing results into a shape close to:

{
  "date": "2026-10-08",
  "is_holiday": false,
  "is_workday": true,
  "holiday_name": "国庆节调休上班",
  "source_url": "https://www.gov.cn/zhengce/content/202511/content_7047090.htm"
}

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-03 08:44 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Design Platform Search

joeyyyy0430
无需登录即可在 Dribbble、Pinterest、Behance 上运行公开设计搜索,提取标题、搜索页封面图等标准化结果字段。
★ 0 📥 431
data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 274 📥 100,943
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 211 📥 69,946