Skip to content
gocn每日新闻和go语言中文网(每日资讯)自动推送
Go Other
  1. Go 98.4%
  2. Other 1.6%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd
conf
dis
pkg
qrcode
utils
.gitignore
.travis.yml
Dockerfile
Makefile
README.md
go.mod
go.sum

README.md

爬取GoCn每日新闻go语言中文网(每日资讯)并推送到微信/邮箱/slack

image

2019-11-20-18-21-29

使用方法

通过微信通知
docker run -v /etc/localtime:/etc/localtime:ro \
-e NOTICE_WECHAT_USERS=特鲁尼克 hanyajun/news_watch_notice
  • NOTICE_WECHAT_USERS 代表你要通知的好友的昵称,其中自己微信的文件助手是默认会发的,如果有多个好友,以逗号","隔开。 image
效果

image

微信通知有个缺点,就是网页版微信只能有一个终端登录

通过邮箱推送
docker run -v /etc/localtime:/etc/localtime:ro -e NOTICE_TYPE=mail \ //采用邮箱通知,不填则默认微信
-e NOTICE_MAIL_TO=1581532052@qq.com,hanyajun5876@163.com \ //发送
-e NOTICE_MAIL_PWD=******* \ //邮箱smtp授权密码
-e NOTICE_MAIL_PORT=25 \  //smtp端口
-e NOTICE_MAIL_HOST=smtp.qq.com \ //smtp服务器地址
-e NOTICE_MAIL_EMAIL=1581532052@qq.com \ //发送邮箱
-e NOTICE_MAIL_CC=1581532052@qq.com,hanyajun5876@163.com //发送抄送 hanyajun/news_watch_notice
效果

image

2019-11-20-18-26-23

slack webhook 发送
docker run -d --name gocn-news-notice-slack -v /etc/localtime:/etc/localtime:ro \
-e NOTICE_TYPE=slack \ //采用slack webhook发送
-e NOTICE_SLACK_WEB_HOOK_URL=**************  //自己创建的slack app的webhook的url
hanyajun/news_watch_notice
效果

image

2019-11-20-18-18-48

You can’t perform that action at this time.