Go to file
2019-03-09 00:50:36 +08:00
.gitignore Update .gitignore 2019-03-08 00:19:43 +08:00
.travis.yml Setup update script and add past data 2019-03-09 00:40:13 +08:00
2007.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2008.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2009.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2010.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2011.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2012.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2013.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2014.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2015.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2016.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2017.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2018.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
2019.json Update data [skip ci] 2019-03-09 00:41:22 +08:00
2020.json Update data [skip ci] 2019-03-09 00:41:22 +08:00
description_parsing_cases.json Setup update script and add past data 2019-03-09 00:40:13 +08:00
fetch_holidays.py Setup update script and add past data 2019-03-09 00:40:13 +08:00
LICENSE Initial commit 2019-03-05 10:56:09 +08:00
README.md Update README.md 2019-03-09 00:50:36 +08:00
requirements.txt Prepare test data 2019-03-06 21:41:31 +08:00
test_fetch_holidays.py Implement paper parsing 2019-03-08 23:14:27 +08:00
update.py Setup update script and add past data 2019-03-09 00:40:13 +08:00

holiday-cn Build Status CalVer

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

  • 提供 JSON 格式节假日数据
  • CI 自动更新
  • 数据变化时时自动发布新版本

数据地址格式: https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/{year}.json

2019 年数据: https://raw.githubusercontent.com/NateScarlet/holiday-cn/master/2019.json

数据格式:

{
    year: Int, 年份
    papers: [String], 所用国务院文件网址列表
    days: [
        {
            name: String, 节日名称
            date: String, ISO 8601 日期
            isOffDay: Boolean, 是否为休息日
        }
    ]
}