Code Monkey home page Code Monkey logo

bangumicalendar-python's Introduction

基于GitHub Action建立bgm番剧Mac日历订阅服务

如果在使用项目中遇到问题,欢迎提issues!!!!!!!!

image

​ 通过bgm开放的api,获取用户所有在看的番剧id以及相关章节信息,生成ics文件,然后通过github中的文件链接,导入到mac自带的日历中,实现日历订阅,不需要专门的服务器来实现。

项目目录

.
├── .github  
│   └── workflows
│       └── python-app.yml  // github action配置文件
├── BEGIN:VCALENDAR.ics     // ics文件初始化模版
├── target.ics              // 生成的目标ics文件
├── requirements.txt        // github action python依赖配置文件
├── iCal.py                 // ics文件生成脚本类
├── main.py                 // main
├── pojo.py                 // python 一些用于存储信息的类
├── reptile.py              // bgm api调用,并解析响应
├── readme.md    
└── util.py                 // 工具类 

项目配置流程

1. fork项目到你的仓库中

2. 在GitHub setting 中配置sercet

image

name : USERID
value : 你的bgm用户id

3. 开放github action 权限

image

4. 在系统日历中订阅如下链接

你也可以直接下载下来target.ics文件拖到日历中,但是这样就无法自动更新了

https://raw.githubusercontent.com/{你的github用户名}/BangumiCalendar-python/main/target.ics

bangumicalendar-python's People

Contributors

hammercloth 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.