Coder Social home page Coder Social logo

dream336 / tg-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jckling/tg-bot

1.0 0.0 0.0 5.81 MB

使用 Github Action 推送内容的 telegram bot:每日推送 Bing 壁纸、百合会中文漫画、Bilibili 动态;每周推送 Pixiv 周榜。

Python 100.00%

tg-bot's Introduction

tg-bot

使用 telegram bot 往频道内定时推送消息:

  1. 每天早上 6:30 推送 Bing 壁纸
  2. 每天晚上 22:00 推送百合会漫画更新
  3. 每天晚上 22:00 推送 Bilibili 动态更新
  4. 每周六早上 7:45 推送 Pixiv 周榜

注意事项

  • 上面的时间是 Github Action 开始运行的时间,推送到频道内会有一定的延迟;
  • Bing 每日壁纸的爬取是根据 UTC 时间,比北京时间慢 8h;
  • 百合会论坛内容按积分限制查看,这里并不能绕过,推送是 昨日 22:00 ~ 今日 22:00 之间发布的中文漫画(北京时间);
  • Bilibili 动态推送是 昨日 22:00 ~ 今日 22:00 之间的动态(最多 12 条)。

Telegram 推送结果

说明

使用方式同 jckling/Daily-Bonus,star 一下,再 fork 本仓库设置 Secrets 就可以运行了,自定义推送时间修改 .github/workflows/ 目录下对应的配置文件即可。

Secret 名称 描述
TOKEN telegram bot token
CHAT_ID telegram channel name
PIXIV_REFRESH_TOKEN Pixiv refresh_token
YAMIBO_COOKIES 百合会 Cookie
  1. token 从 @BotFather 获取,chat_id 就是 @bot(假设频道链接为 https://t.me/bot)
  2. Pixiv refresh_token 获取参见👉 获取 Refresh Token
  3. 百合会论坛 Cookie 获取参见👉 V2EX Cookie 查看

Bilibili 动态推送需要在 bilibili/uids.txt 添加 uid:

  • 网页端 - 点击头像进入个人空间 - https://space.bilibili.com/uid
  • 移动端 - 点击头像进入个人空间 - 个人签名最右侧点击详情查看

相关链接

tg-bot's People

Contributors

dependabot[bot] avatar jckling avatar

Stargazers

 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.