https://holidays-calendar.net/calendar_zh_cn/china_zh_cn.html
https://zhiwei-tech.com/console/api/holiday/202001
百度接口(没有国务院每年假期,只是万年历):
http://opendata.baidu.com/api.php?query=2020%E5%B9%B41%E6%9C%88&resource_id=6018&format=json
参考:https://open.baidu.com/xcxdoc/srcids/48019.html
节假日采用以下接口:
http://www.easybots.cn/api/holiday.php?m=201912,202001
工作日对应结果为 0, 休息日对应结果为 1, 节假日对应的结果为 2
输出结果:
{"201912":{"01":"1","07":"1","08":"1","14":"1","15":"1","21":"1","22":"1","28":"1","29":"1"},"202001":{"01":"2","04":"1","05":"1","11":"1","12":"1","18":"1","24":"1","25":"2","26":"2","27":"2","28":"1","29":"1","30":"1"}}
评论