当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
18 Star 35 Fork 9

Jemmy / COVID-19_notify
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

COVID-19_notify

介绍

最近闲得无聊,写一个脚本 抓取丁香医生网页关于疫情的实时播报,已经实现 钉钉通知 和 Server酱微信通知 和 持久化(rediskafka)

关于守护进程启动: 参考自Python实现守护进程【这个方法不行,退出shell依旧会退出主程序】 终极武器:Linux的 crontab 用法:1. 创建文件 /etc/crontab    2. 设定定时任务: 在最后一行加入 */3 * * * * bash 项目路径/start.sh >> 日志文件路径(这里解释一下,*/3表示每3分钟执行一次后面的命令,即 bash 项目路径/start.sh,记得将项目路径换成你自己真正的项目路径;日志表示Python的print输出会重定向到哪个文件中)    3. 重新加载crontab命令: /sbin/service crond reload    4. 完成

安装教程

  1. git clone https://gitee.com/JemmyHu/COVID-19_notify.git
  2. 创建虚拟环境并安装依赖
  3. 改名 Config.py.template 为 Config.py,并设置正确的配置(重要!!)
  4. python3 run.py t 检查各组件是否运行正常 python3 run.py r 运行程序 (或者使用上面的守护进程方式启动)

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_your_name 分支
  3. 提交代码
  4. 新建 Pull Request (有任何问题可以联系我:hujm20151021@gmail.com)
MIT License Copyright (c) 2020 Jemmy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

抓取丁香医生网页实时播报,已经实现 钉钉通知 和 Server酱微信通知 和持久化(redis,kafka,mysql) 展开 收起
Python 等 2 种语言
MIT
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/JemmyHu/COVID-19_notify.git
git@gitee.com:JemmyHu/COVID-19_notify.git
JemmyHu
COVID-19_notify
COVID-19_notify
master

搜索帮助