GithubHelp home page GithubHelp logo

im286er / webchat-robot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nangge/webchat-robot

0.0 2.0 0.0 124 KB

通过分析网页版微信通讯,用php开发出的微信网页版机器人

PHP 86.40% CSS 13.60%

webchat-robot's Introduction

webchat-robot

通过分析网页版微信通讯过程,开发出的微信网页版机器人 /**

  • 参考文章http://www.tanhao.me/talk/1466.html/
  • 通讯步骤
  • 1,微信服务器返回一个会话ID
  • 2.通过会话ID获得二维码
  • 3.轮询手机端是否已经扫描二维码并确认在Web端登录
  • 4.访问登录地址,获得uin和sid
  • 5.初使化微信信息
  • 6.获得所有的好友列表
  • 7.保持与服务器的信息同步
  • 8.获得别人发来的消息
  • 9.向用户发送消息 **/

首先简单介绍下使用: clone项目目录到你的www目录,然后浏览器地址栏输入localhost/webchat-robot/index.php 扫码,手机端确认登陆,此时你会进入主面板,点击某个好友即可和他聊天。好友回复后机器人将会根据消息进行自动回复。

该项目目前只实现了纯文本的消息回复,后续可能会持续开发,另外也会增加机器人的功能,比如添加成语接龙(让你的微信成语接龙所向披靡)、天气查询、快递查询等

上边文章提到的通讯过程对于目前的网页版微信的通讯有些出入,有些步骤无法走通,所以还需要自己分析,如果你有兴趣也可以通过firfox、chrome浏览器,F12后,进行分析,那将会更直观,让你也会认识更加清晰。

该机器人目前可能会有些bug,但整体是可以使用的,略微有些瑕疵,比如无法获取好友头像(后续会进行开发)

另外,抽空我也会专门写篇文章进行简单介绍该项目和网页版微信的通信过程,有兴趣的同学可以关注 www.5none.com

webchat-robot's People

Contributors

nangge avatar

Watchers

James Cloos 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.