编辑文章 微信刷步酷玩代码 ## 刷步地址 [http://step.liflag.cn/](http://step.liflag.cn/) 关于刷步数这件事,微信支付宝QQ等本身的步数校验方法非常完善,很难通过他们的接口来刷步数,但是他们提供来第三方应用同步的接口,而这些应用的数据同步接口都是可以抓包获取,并且自己用爬虫来提交目标步数的。 今天推荐的方法就是使用乐心运动的数据同步,来同步到微信支付宝等应用。 ## 使用方法 * 1、首先下载乐心健康APP [http://app.mi.com/details?id=gz.lifesense.weidong](http://app.mi.com/details?id=gz.lifesense.weidong) * 2、使用手机号注册,在设置中添加密码,数据同步中选中要同步的app <img src="http://img.liflag.cn/post/ae4253c31a69c1ec2347d73b195b4507.png" width=60% /> * 3、使用乐心健康的账号密码去修改乐心的步数,然后同步到微信运动 修改地址 [step.liflag.cn](http://step.liflag.cn) ## 原理 很简单,模拟乐心健康登录后,上传步数就可以 两个请求构造如下: ``` # 登录 url = 'https://sports.lifesense.com/sessions_service/login?systemType=2&version=4.6.7' data = {'loginName': self.username, 'password': hashlib.md5(self.password.encode('utf8')).hexdigest(), 'clientId': '49a41c9727ee49dda3b190dc907850cc', 'roleType': 0, 'appType': 6} headers = {'Content-Type': 'application/json; charset=utf-8', 'User-Agent': 'Dalvik/2.1.0 (Linux; U; Android 7.1.2; LIO-AN00 Build/LIO-AN00)'} ``` ``` # 修改步数 url = 'https://sports.lifesense.com/sport_service/sport/sport/uploadMobileStepV2?systemType=2&version=4.6.7' data = {'list': [{'DataSource': 2, 'active': 1, 'calories': int(self.step/4), 'dataSource': 2, 'deviceId': 'M_NULL', 'distance': int(self.step/3), 'exerciseTime': 0, 'isUpload': 0, 'measurementTime': time.strftime('%Y-%m-%d %H:%M:%S'), 'priority': 0, 'step': self.step, 'type': 2, 'updated': int(round(time.time() * 1000)), 'userId': login_result[0]}]} headers = {'Content-Type': 'application/json; charset=utf-8', 'Cookie': 'accessToken=%s' % login_result[1]} ``` git地址:[https://github.com/CasterWx/lexin](https://github.com/CasterWx/lexin) ## 霸榜封面  <h2>刷步地址 <a href="http://step.liflag.cn/">http://step.liflag.cn/</a></h2> <p>关于刷步数这件事,微信支付宝QQ等本身的步数校验方法非常完善,很难通过他们的接口来刷步数,但是他们提供来第三方应用同步的接口,而这些应用的数据同步接口都是可以抓包获取,并且自己用爬虫来提交目标步数的。</p> <p>今天推荐的方法就是使用乐心运动的数据同步,来同步到微信支付宝等应用。</p> <h2>使用方法</h2> <ul> <li>1、首先下载乐心健康APP <a href="http://app.mi.com/details?id=gz.lifesense.weidong">http://app.mi.com/details?id=gz.lifesense.weidong</a></li> <li>2、使用手机号注册,在设置中添加密码,数据同步中选中要同步的app</li> </ul> <img src="http://img.liflag.cn/post/ae4253c31a69c1ec2347d73b195b4507.png" width=60% /> <ul> <li>3、使用乐心健康的账号密码去修改乐心的步数,然后同步到微信运动 修改地址 <a href="http://step.liflag.cn">step.liflag.cn</a></li> </ul> <h2>原理</h2> <p>很简单,模拟乐心健康登录后,上传步数就可以</p> <p>两个请求构造如下:</p> <pre><code># 登录 url = 'https://sports.lifesense.com/sessions_service/login?systemType=2&version=4.6.7' data = {'loginName': self.username, 'password': hashlib.md5(self.password.encode('utf8')).hexdigest(), 'clientId': '49a41c9727ee49dda3b190dc907850cc', 'roleType': 0, 'appType': 6} headers = {'Content-Type': 'application/json; charset=utf-8', 'User-Agent': 'Dalvik/2.1.0 (Linux; U; Android 7.1.2; LIO-AN00 Build/LIO-AN00)'} </code></pre> <pre><code># 修改步数 url = 'https://sports.lifesense.com/sport_service/sport/sport/uploadMobileStepV2?systemType=2&version=4.6.7' data = {'list': [{'DataSource': 2, 'active': 1, 'calories': int(self.step/4), 'dataSource': 2, 'deviceId': 'M_NULL', 'distance': int(self.step/3), 'exerciseTime': 0, 'isUpload': 0, 'measurementTime': time.strftime('%Y-%m-%d %H:%M:%S'), 'priority': 0, 'step': self.step, 'type': 2, 'updated': int(round(time.time() * 1000)), 'userId': login_result[0]}]} headers = {'Content-Type': 'application/json; charset=utf-8', 'Cookie': 'accessToken=%s' % login_result[1]} </code></pre> <p>git地址:<a href="https://github.com/CasterWx/lexin">https://github.com/CasterWx/lexin</a></p> <h2>霸榜封面</h2> <p><img src="http://img.liflag.cn/post/b2ef284d41fb699411064c01b8ff0174.png" alt="微信图片_20201118170532.png" /></p> 标题: 分类: 请选择分类(必选) 博客 酷玩 分享 相册 标签: 按 Tab、回车或逗号把输入的文字变成标签;点 × 或在输入框为空时按退格删除;最多 8 个 封面图: 上传图片 建议尺寸 800x400,图片大小不超过 1MB 展开更多设置(关键词、摘要、转载、评论) 关键词: 摘要: 刷步地址 http://step.liflag.cn/ 关于刷步数这件事,微信支付宝QQ等本身的步数校验方法非常完善,很难通过他们的接口来刷步数,但是他们提供来第三方应用同步的接口,而这些应用的数据同步接口都是可以抓包获取,并且自己用爬虫来提交目... 选项: 是否转载 启用评论 勾选「是否转载」可标注文章来源,原文链接可留空。 正文: 保存修改