{"id":13617383,"url":"https://github.com/zhaoolee/wxread","last_synced_at":"2025-04-14T06:33:38.910Z","repository":{"id":97799940,"uuid":"152344671","full_name":"zhaoolee/wxread","owner":"zhaoolee","description":"微信读书刷时长","archived":false,"fork":false,"pushed_at":"2018-10-10T01:36:07.000Z","size":675,"stargazers_count":72,"open_issues_count":3,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-05T16:11:08.708Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhaoolee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-10-10T01:30:55.000Z","updated_at":"2025-03-26T16:33:16.000Z","dependencies_parsed_at":"2023-03-26T13:48:12.739Z","dependency_job_id":null,"html_url":"https://github.com/zhaoolee/wxread","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoolee%2Fwxread","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoolee%2Fwxread/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoolee%2Fwxread/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaoolee%2Fwxread/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhaoolee","download_url":"https://codeload.github.com/zhaoolee/wxread/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248834915,"owners_count":21169114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T20:01:40.884Z","updated_at":"2025-04-14T06:33:38.543Z","avatar_url":"https://github.com/zhaoolee.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# wxread\n微信读书刷时长\n\n\n- 微信读书有一个鼓励机制, 一周阅读5小时可兑换10书币，每周日晚清空一周的总读书时长，没兑换的时长不计入下一周(1书币 == 1块钱)\n- 作为一个经常加班的程序猿, 一周刷5个小时, 有点困难, 所以只好请一些自动化测试工具来帮忙(刷时长真是一个古老而有效的技能), 花了一天的时间,终于完成了~\n## 最终效果\n\u003e ![](https://upload-images.jianshu.io/upload_images/3203841-acc68cc85a404bb8.gif?imageMogr2/auto-orient/strip)\n\u003e ![](https://upload-images.jianshu.io/upload_images/3203841-493c8c03e260c906.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\u003e ![](https://upload-images.jianshu.io/upload_images/3203841-77a37d77be0fde06.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n## 第一步: 安装网易mumu, 通过应用中心安装微信读书\n- 网页mumu下载地址: http://mumu.163.com/\n\u003e  ![](https://upload-images.jianshu.io/upload_images/3203841-06caef43a99b43b1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n-  在网易mumu模拟器内安装微信读书\n\u003e ![](https://upload-images.jianshu.io/upload_images/3203841-726604661574a2f3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n## 第二步:下载安装python环境\n\u003e 下载地址: https://www.python.org/downloads/\n\u003e ![](https://upload-images.jianshu.io/upload_images/3203841-c0034f0f89408263.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n- 通过python自带的pip安装依赖包`uiautomator`\n```\npip install uiautomator\n```\n## 第三步: 获取adb, 将adb连接到mumu所在的`127.0.0.1:7555`\n\u003e - adb相当于mumu的驱动, 我找到了一个无需安装的版本, 解压即用,adb压缩包里的文件如下图(文末提供了下载的链接)\n\u003e ![](https://upload-images.jianshu.io/upload_images/3203841-c14eddb53272c2ee.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\u003e - 测试: 启动mumu, 右键cmd.exe, 以管理员身份启动, 在终端内输入`adb connect 127.0.0.1:7555`, adb即可成功连接到mumu(注意: 这里一定要先启动mumu, 再输入`adb connect 127.0.0.1:7555`,否则adb无法连接成功)\n\u003e ![](https://upload-images.jianshu.io/upload_images/3203841-de547d14d092b68b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n## 第四步: 启动脚本, 刷时长\n- 为了方便, 我把脚本`wx_read_auto.py`放到了adb的目录下\n\u003e ![](https://upload-images.jianshu.io/upload_images/3203841-8a7bbbbb6edbaa67.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n- 打开mumu内的微信读书的某一页, 启动脚本\n\u003e ![](https://upload-images.jianshu.io/upload_images/3203841-acb1d32977afd824.gif?imageMogr2/auto-orient/strip)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaoolee%2Fwxread","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhaoolee%2Fwxread","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaoolee%2Fwxread/lists"}