• Stars
    star
    1,183
  • Rank 39,268 (Top 0.8 %)
  • Language
    Python
  • License
    MIT License
  • Created over 5 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📅🇨🇳中国法定节假日数据 自动每日抓取国务院公告

holiday-cn

Build Status Release CalVer Maintainability Test Coverage Maintenance

中国法定节假日数据 自动每日抓取国务院公告

  • 提供 JSON 格式节假日数据
  • CI 自动更新
  • 数据变化时自动发布新版本 ( Watch - Release only 以获取邮件提醒! )
  • 发布页面提供 JSON 打包下载

数据格式:

JSON Schema

interface Holidays {
  /** 完整年份, 整数。*/
  year: number;
  /** 所用国务院文件网址列表 */
  papers: string[];
  days: {
    /** 节日名称 */
    name: string;
    /** 日期, ISO 8601 格式 */
    date: string;
    /** 是否为休息日 */
    isOffDay: boolean;
  }[]
}

注意事项

  • 年份是按照国务院文件标题年份而不是日期年份,12 月份的日期可能会被下一年的文件影响,因此应检查两个文件。

通过互联网使用

提示:任何第三方服务都可能故障或停止服务,如果稳定性要求高请自己搭建静态文件服务。

数据地址格式:

https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/{年份}.json

或使用 JSDelivr:

https://cdn.jsdelivr.net/gh/NateScarlet/holiday-cn@master/{年份}.json

也可尝试使用 ghproxy 或其他 Github 加速:

https://ghproxy.com/https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/{年份}.json

访问 github 不方便时可使用国内镜像仓库 2022-08-05: coding 现在要求登录才能下载开源仓库的文件。

https://natescarlet.coding.net/p/github/d/holiday-cn/git/raw/master/{年份}.json

ICalendar 订阅

网址格式参见上一节

{年份}.ics 为对应年份的节假日

holiday-cn.ics 为 3 年前至次年的节假日

感谢 @retanoj 的 ics 格式转换实现

作为 git 子模块使用

参见 Git 工具 - 子模块

More Repositories

1

auto-derby

🐎🖥《赛马娘》(ウマ娘: Pretty Derby)辅助脚本
Python
466
star
2

gfwlist.acl

🌐gfwlist in acl format, compatible with SSR, update daily by travis CI
Python
49
star
3

auto-dragalia

🐲📱《失落的龙约》 [Auto.js](https://github.com/hyb1996/Auto.js) 辅助脚本 因游戏将停止运营而归档 archived due to the game about to end of life
TypeScript
41
star
4

pixiv

Pixiv go 客户端, 使用 Pixiv 网页 API。
Go
30
star
5

bilibili-live-notification

B 站直播事件 webhook 和开播邮件提醒
Jupyter Notebook
30
star
6

nuke-docker

⚓The foundry nuke in docker container
Python
19
star
7

svg-variable-width-line

Create svg path with each point can have variable width.
TypeScript
15
star
8

NukeBatchRender

Nuke批渲染工具
Python
11
star
9

graphene-django-tools

Tools for use graphene with django. Use a explicit schema definition approach that different from graphene-django. Archived due to author has been switched to golang
Python
8
star
10

grindea-math-puzzle

Solve math puzzle from game《Secrets of Grindea》
TypeScript
6
star
11

user-scripts

浏览器用户脚本(GreaseMonkey, TamperMonkey)
TypeScript
5
star
12

qidian

起点中文网 go 客户端,基于网页版页面提取。
Go
4
star
13

Scripts

个人杂项脚本
Jupyter Notebook
4
star
14

mongo-operators

Utility functions to create mongodb operator.
Go
4
star
15

StarboundDashboard

Realtime starbound server status
TypeScript
4
star
16

base64-image-preview

TypeScript
3
star
17

ciweimao

刺猬猫 Go 客户端,使用安卓客户端 API。
Go
3
star
18

NateScarlet.Github.io

Github Pages
HTML
3
star
19

ziroom-ob

自如抢房监控
Go
2
star
20

npm-mirror-set

Set npm package mirrors.
JavaScript
2
star
21

cast-unknown

Cast unknown value to desired type with typescript support.
TypeScript
2
star
22

graphene-resolver

Using mongoose-like schema to write apollo-like resolver for graphene.
Python
2
star
23

Nuke

nuke plugins collection, daily use.
Python
1
star
24

cookiejar

A fork of `net/http/cookiejar` that saves cookie entries to a Repository.
Go
1
star
25

phrases-case

Convert phrases between different cases.
Python
1
star
26

auto-derby-plugin-generator

A web app to generate auto-derby plugin.
Vue
1
star