Git Product home page Git Product logo

github_monitor's Introduction

GitHub工具监测小脚本

其实网上有好些脚本了,比如yhy0大佬的:https://github.com/yhy0/github-cve-monitor

我是参考了他的工具,因为我原先也不知道GitHub更新机制可以从GitHub的api中获取到信息,然后判断。


为啥有这个工具?就是当时使用yhy0大佬的工具的时候我只是单纯的想监控工具,不想监控什么关键字呀什么用户呀之类的。然后还发先跑起来的时候有两个工具一直在重复推送消息给我(后来发现是同名工具导致的),然后就想自己写一个,毕竟大佬的代码太复杂了不想看呀,其次也想自己尝试一下写写。

我这个工具就比较low了,只能做到工具监测,而且只能server酱和企业微信机器人推送。

工具的使用

需要装一下requests库,使用了清华大学的镜像,快一些,命令如下:

pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

然后把工具一行一个的写道tools.txt中。

配置一下GitHub的token和server酱的SendKey就好了或者企业微信机器人的key。

github的token怎么获取可以百度。

1679386101670

最后使用放到服务器上,用nohup在后台跑着就行了,命令如下:

nohup python3 github_monitor.py &

测试结果

1679386529979

github_monitor's People

Contributors

qingchenhh avatar

Stargazers

 avatar weiboDev avatar

Watchers

 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.