GithubHelp home page GithubHelp logo

lazyfans's Introduction

===================

用于新浪微博粉丝服务。

部署说明

  • 修改config.ini文件中的配置信息
  • 修改server/config.php中的配置信息
  • 找一台能访问公网的机器起一个守护进程,参考如下守护进程
  • 将server下的代码部署到web服务器,参考如下web端

守护进程

其中lazyfans.py为守护进程脚本,需要找一台可以访问公网的机器部署。守护进程的作用为长连接新浪微博推消息接口,一旦有新的私信,将其转发到web端处理。

部署脚本:

#nohup python lazyfans.py &

web端

web端是一个php脚本,你也可以使用其他的语言改写,作用是接受守护进程推送过来的消息,并按照你的处理逻辑得到响应的结果,然后将其发送给发私信的用户,完成一次交互。

Bug tracker

Have a bug? Please create an issue here on GitHub!

https://github.com/xiaosier/lazyfans/issues

Author

lazyfans's People

Contributors

xiaosier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.