# wx_jump_app **Repository Path**: vista918/wx_jump_app ## Basic Information - **Project Name**: wx_jump_app - **Description**: 微信小程序 跳一跳 自动跳 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: https://gitee.com/vista918/wx_jump_app - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2017-12-30 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 教你用Python来玩微信跳一跳 > 2017年12月28日下午,微信发布了 6.6.1 版本,加入了「小游戏」功能,并提供了官方 demo「跳一跳」。 分刷太高会被清零,注意 请将安卓手机的usb调试模式打开,》开发者选项》USB调试 ## 工具介绍 - Python 2.7 - Android 手机 - Adb 驱动 如果你是`iOS`,请参考下面的配置: - 使用真机调试wda,参考iOS 真机如何安装 [WebDriverAgent · TesterHome](https://testerhome.com/topics/7220) - 安装[openatx/facebook-wda](https://github.com/openatx/facebook-wda) - Python 3 ## 依赖安装 ``` bash pip install -r requirements.txt ``` ## 原理说明 1. 将手机点击到《跳一跳》小程序界面; 2. ```shell python2 /Users/vista/PycharmProjects/wechat_jump_game/wechat_jump_auto.py ``` ## `iOS`: - 克隆 WebDriverAgent 项目 git clone https://github.com/facebook/WebDriverAgent - 安装 Carthage brew install carthage - 执行 ./Scripts/bootstrap.sh - 打开 WebDriverAgent 项目并按照教程修改, 运行 Product -> Test - 安装端口转发 brew install libimobiledevice - 转发端口 iproxy 8100 8100 , 窗口不要关闭或者终止运行 - 访问 http://localhost:8100/status 有内容显示 - 再打开一个新的终端进入到克隆的 wechat_jump_game 目录下面 ```shell pip install --pre facebook-wda pip install -r requirements.txt python wechat_jump_iOS_auto.py ``` 根据蓄力一跳的精准情况更改其中的 `time_coefficient`,直到获得最佳取值 ## ``android`` - 安卓手机打开USB调试,设置》开发者选项》USB调试 - 电脑与手机USB线连接,确保执行`adb devices`可以找到设备id - 界面转至微信跳一跳游戏,点击开始游戏 - 运行`python wechat_jump_auto.py`,如果手机界面显示USB授权,请点击确认 ## 实验结果 ## TODO