GithubHelp home page GithubHelp logo

kuaishou-auto's Introduction

安装:

autoPro.js

需要安装autoPro.js在手机端(或者虚拟机上)

开始

autoPro.js

ctrl+shift+p 搜索 运行脚本
入口文件为auto.js 在vscode上与虚拟机联调autoPro.js的方法参考:https://www.52pojie.cn/forum.php?mod=viewthread&tid=1169466

client

启动测试服务:
node ./client/client
该测试服务的代码最终将会被移植到puppet上(目前已完成对消息的移植)

运行顺序

为了防止消息监听的失效,应该按照以下步骤运行

  1. first start up autoPro.js
  2. second start up kuaishou app
  3. third enter the message page
  4. fourth start up the script(as server)
  5. fifth start up the puppet

文档

login(phone,pwd)

phone:登入需要的手机号
pwd:密码 登入的相关操作

ClassMessage

该文件应被放在虚拟机的autoPro.js的文件夹中

findNameByHistoryList(name)

根据name在历史记录中查找,如果找到了返回true,没找到返回false

noticeMessage()

如果有人发送消息则根据消息提示进入和该联系人的聊天页面并提取最后一条消息。

findNameByFollowList(name)

在关注列表中根据name搜索用户

sendMessage()

在已经进入聊天页面后发送消息,目前支持文字和图片类型消息。(图片会被转码成base64然后发送)

room.js

存放关于群管理的文件

room_create(create_room_name,create_room_info)

create_room_name:群名称
create_room_info:群信息

invite(invited_userName)

invited_userName:被邀请人的名称
该方法可以邀请一个用户到群聊中

dialogs.js

存放关于弹窗处理的文件

completeProcess.js

理想状态下的完整代码流程

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.