natescarlet / holiday-cn Goto Github PK
View Code? Open in Web Editor NEW📅🇨🇳**法定节假日数据 自动每日抓取国务院公告
License: MIT License
📅🇨🇳**法定节假日数据 自动每日抓取国务院公告
License: MIT License
2020年获取到的json 2020年的春节 从1月24一直到2月2号都是春节了
未标记补班信息,这部分信息国务院网站是提供了的,但是本 Repo 丢失了。
{
"name": "春节",
"date": "2021-02-07",
"isOffDay": false
},
应该是从 2.11 开始
判断某一天是否为工作日或者是法定节假日,仅适用于**
安装
pip install china-calendar
使用示例:
import china_calendar
# 清明节
assert china_calendar.is_holiday('2024-04-04') == True
assert china_calendar.is_workday('2024-04-04') == False
Lines 50 to 59 in 8a74a76
是否考虑支持 ics 格式的输出,方便手机 / PC 用户直接订阅。
Travis CI 开始收费了
依赖此项目开发了服务器订阅版本:https://github.com/459217974/cn-holiday-ics-server
伸手党可以直接使用我搭建的服务订阅节假日信息,实现自动更新。
自己有服务器的也可以自己搭建服务。
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/main.yml
actions/checkout v3
actions/setup-python v4
dev-requirements.txt
requests ==2.32.3
beautifulsoup4 ==4.12.3
tqdm ==4.66.5
icalendar ==4.1.1
pytest ==7.4.4
coverage ==6.5.0
black ==23.12.1
一、元旦:1月1日放假,与周末连休。
2023-12-30 到 2024-1-1 放假
应该是8,9,10三天显示
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)
比如2019年的劳动节,时间突然变更了,请问怎么解决。
https://cdn.jsdelivr.net 请问文件多久更新一次,发现2024年数据没同步
国庆节、中秋节:10月1日至8日放假,共8天。其中,10月1日(星期四)、10月2日(星期五)、10月3日(星期六)为国庆节法定节假日,10月4日(星期日)照常公休;10月3日(星期六)公休日及中秋节分别调至10月5日(星期一)、10月6日(星期二),9月27日(星期日)、10月10日(星期六)公休日调至10月7日(星期三)、10月8日(星期四)。9月27日(星期日)、10月10日(星期六)上班。
{
"name": "国庆节、中秋节",
"date": "2009-09-27",
"isOffDay": false
},
{
"name": "国庆节、中秋节",
"date": "2009-10-10",
"isOffDay": false
}
因为这一年放了法西斯胜利纪念70周年假
RT
https://natescarlet.coding.net/p/github/d/holiday-cn/git/raw/master/2022.json
返回
{"msg":{"user_not_login":"用户未登录"},"data":{"account_type":"0"},"code":1000}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.