1 Star 1 Fork 0

の所在 / wx_jump_app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

教你用Python来玩微信跳一跳

2017年12月28日下午,微信发布了 6.6.1 版本,加入了「小游戏」功能,并提供了官方 demo「跳一跳」。

分刷太高会被清零,注意

请将安卓手机的usb调试模式打开,》开发者选项》USB调试

工具介绍

  • Python 2.7
  • Android 手机
  • Adb 驱动

如果你是iOS,请参考下面的配置:

依赖安装

pip install -r requirements.txt

原理说明

  1. 将手机点击到《跳一跳》小程序界面;
    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 目录下面
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

MIT License Copyright (c) 2017 wangshub Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

微信小程序 跳一跳 自动跳 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/vista918/wx_jump_app.git
git@gitee.com:vista918/wx_jump_app.git
vista918
wx_jump_app
wx_jump_app
master

搜索帮助