I heard that the holiday of 2021 will be released

Title: Notice of The General Office of the State Council on the arrangement of some Holidays in 2021; Link: http://www.gov.cn/zhengce/content/2020-11/25/content_5564127.htm; People's governments of all provinces, autonomous regions and municipalities directly under the Central Government, Ministries and commissions of the State Council and directly affiliated institutions: With the approval of The State Council, the specific arrangements for the New Year's Day, Spring Festival, Tomb-sweeping Day, Labor Day, Dragon Boat Festival, Mid-Autumn Festival and National Day in 2021 are hereby notified as follows. 1. New Year's Day: The holiday will last for 3 days from January 1 to 3, 2021. Two, the Spring Festival: February 11 to 17 days off holiday, a total of 7 days. February 7th (Sunday), February 20th (Saturday). Three, Tomb-sweeping Day: April 3 to 5 days off, a total of 3 days. Four, Labor day: May 1 to 5 days off, a total of 5 days. April 25 (Sunday), May 8 (Saturday) work. Five, Dragon Boat Festival: June 12 to 14 days holiday, a total of three days. Six, Mid-Autumn Festival: September 19 to 21 days off holiday, a total of 3 days. September 18th (Saturday). Seven, National Day: October 1 to 7 days off, a total of 7 days. September 26 (Sunday), October 9 (Saturday) work. During the holidays, the regions, departments to properly arrange the duty and security, security and other work, in case of major emergencies, according to the provisions of the timely report and proper disposal, to ensure that the people peaceful and safe holiday. General Office of the State Council on November 25, 2020;Copy the code

Review last year’s holiday calendar data solution

Projects involved:

  • LKI/ Chinese – Calendar To determine whether a day is a statutory holiday/statutory working day (check the holiday arrangement)
  • NateScarlet/holiday-cn 📅🇨🇳 Automatically captures China’s official holidays and holidays every day

Hot update mode

  • LKI/chinese-calendar/issues/42

Use this package for updates

  • Step1. Within the program, use the command line to update
import os
os.system("pip install --upgrade chinesecalendar")
Copy the code
  • Step2. Set regular task can, run once a day, deal with the possibility of the sudden holiday of the 70th anniversary of anti-fascist 😳

Ii. Crawler monitors the website of The State Council and the keyword “holiday arrangement” appears. The developer should submit PR to the project in time or manually generate data 😃

Ensure holiday data service, timely and reliable ~