Skip to content

可以每日获取最新的新闻热搜前十条 并 推送至 钉钉和飞书群里

Notifications You must be signed in to change notification settings

wenyang0/bot-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bot-news

该项目 主要用来实现 通过钉钉或者飞书机器人每天在群里 更新 新闻热搜,每日一言,当地天气和时间等情况

当然你也可以做成自动的定时任务每天9:00执行一次,让你的小群热闹起来

[root@test]# crontab -l
0 9 * * * python3 dingding-news.py
0 9 * * * python3 feishu-news.py

用法也非常简单,按照如下操作即可

第一步

下载本项目到本地
git clone https://github.com/wenyang0/bot-news.git

第二步

修改 飞书 或者 钉钉脚本中的机器人的webhook地址

钉钉:
# 配置钉钉机器人 Webhook URL
webhook_url = "https://oapi.dingtalk.com/robot/send?access_token=YOUR_ACCESS_TOKEN"

飞书:
# 配置飞书机器人 Webhook URL
webhook_url = "YOUR_WEBHOOK_URL"


第三步

执行python脚本
钉钉群:
python3  dingding-news.py

飞书群:
python3  feishu-news.py

第四步

去钉钉或者飞书群里查看效果

钉钉群效果: 钉钉群图片

飞书群效果: 飞书群图片

About

可以每日获取最新的新闻热搜前十条 并 推送至 钉钉和飞书群里

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages