GithubHelp home page GithubHelp logo

colycao / chinese_holiday_spider_module Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imlinhanchao/chinese_holiday_spider_module

0.0 2.0 0.0 16 KB

国家节假日解析爬虫

License: GNU General Public License v3.0

Python 100.00%

chinese_holiday_spider_module's Introduction

国家节假日解析爬虫

可用于解析获取国家节假日公布页面的节假日安排。

使用示例

from holiday import get_holiday
from datetime import datetime

# 得到当前年节假日
current_year_holiday = get_holiday(datetime.now().year)

返回节假日名、假日和补休日时间戳:

[{
    "name": "春节",
    "holiday": [
        1518624000, 1518710400, 
        1518796800, 1518883200, 
        1518969600, 1519056000, 
        1519142400
    ],
    "workday": [
        1518278400, 1519401600
    ]
}]

注意

建议作为每年执行的脚本调用,而非实时API。

chinese_holiday_spider_module's People

Contributors

imlinhanchao avatar

Watchers

James Cloos avatar Coly Cao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.