Giter Site home page Giter Site logo

pygnokii's Introduction

#用gnokii发短信实现自动排队

可能用过短信猫并且使用gnokii发短信的朋友们可能会发现,如果同一时间发短信的请求过多会导致短信猫卡死现象,所以下面这个脚本就是帮助大家解决这个小问题的。

大体的意思就是通过监控gnokii的锁文件来判断当前短信猫是否繁忙,然后给每个脚本一个随机延迟的时间,这样就不会同时有多个请求到短信猫。

脚本是用python写的,复制下面代码到一个文本文件并将其命名为*.py,给你要执行这个脚本的账户执行的权限,USAGE代码里已经写了大概格式像下面这样:

#.\test.py 15012345678 "你好!世界!" 使用这个脚本需满足以下条件:

本地正确安装gnokii并修改配置文件开启lockfile功能 本地有python环境(一般发行版都有) 修改脚本里的lockfile和gnokii为你自己实际的路径

pygnokii's People

Contributors

qn2060 avatar

Stargazers

 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.