爬取GoCn每日新闻和go语言中文网(每日资讯)和Gopher Daily并推送到微信/邮箱/slack
docker run -v /etc/localtime:/etc/localtime:ro \
-e NOTICE_WECHAT_USERS=特鲁尼克 hanyajun/news_watch_notice
微信通知有个缺点,就是网页版微信只能有一个终端登录
访问 https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login 微信扫一扫开通并关注测试号,填写 appid 和 appsecret 运行即可在订阅号中找到该测试号推送的消息
docker run -d -v /etc/localtime:/etc/localtime:ro \
-e NOTICE_TYPE=disable \
-e WECHAT_PUSH=push \
-e WECHAT_APP_ID=wxf123456789 \
-e WECHAT_APP_SECRET=adcdefg123456789 \
hanyajun/news_watch_notice
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
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