2021-08-16 10:14:17 +00:00
|
|
|
|
# MIUI Task
|
2022-08-22 00:17:35 +00:00
|
|
|
|
一个适用于 小米社区 4.0 自动完成成长值任务的脚本
|
2021-08-16 10:14:17 +00:00
|
|
|
|
|
2021-08-17 03:31:12 +00:00
|
|
|
|
[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu) ![GitHub](https://img.shields.io/github/license/0-8-4/miui-auto-tasks) ![python](https://img.shields.io/badge/python-3.6+-blue)
|
2021-09-06 22:35:03 +00:00
|
|
|
|
|
2021-08-16 10:14:17 +00:00
|
|
|
|
|
|
|
|
|
## **关于项目**:
|
|
|
|
|
|
|
|
|
|
由 `東雲研究所` 的某位大佬编写
|
|
|
|
|
由大佬授权 `0-8-4` 使用 `MIT` 开源
|
2021-08-21 15:52:45 +00:00
|
|
|
|
`0-8-4` 和 `TardisLX` 会进行基础维护
|
2021-12-24 13:53:40 +00:00
|
|
|
|
我们认为小米社区无权在无任何回报的情况下强制要求内测用户完成 KPI 任务,因此诞生了这个脚本
|
2021-08-16 10:14:17 +00:00
|
|
|
|
|
2021-08-21 15:52:45 +00:00
|
|
|
|
|
|
|
|
|
## **重要声明**:
|
|
|
|
|
- 虽然理论上本脚本不会影响小米社区账户安全,但您需要自行承担使用本脚本的后果
|
|
|
|
|
|
|
|
|
|
- **我们不鼓励,不支持一切商业使用**
|
2021-12-24 13:53:40 +00:00
|
|
|
|
- 鉴于项目的特殊性,我们可能在任何时间 **停止更新** 或 **删除项目**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### **使用说明**:
|
|
|
|
|
关于项目的详细使用方法请阅览 **[WiKi](https://github.com/0-8-4/miui-auto-tasks/wiki)**
|
2021-08-21 15:52:45 +00:00
|
|
|
|
|
2021-09-06 22:35:03 +00:00
|
|
|
|
|
2021-08-21 15:52:45 +00:00
|
|
|
|
### **项目依赖**:
|
2021-12-24 13:53:40 +00:00
|
|
|
|
1. 需要前往 Python 官网自行下载自己系统对应的 Python 版本,或使用自己系统对应的包管理安装,推荐至少 Python 3.6 以上
|
2021-08-17 03:31:12 +00:00
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
https://www.python.org/downloads/
|
|
|
|
|
```
|
|
|
|
|
|
2021-12-24 13:53:40 +00:00
|
|
|
|
2. Python 3 安装完成之后,请在 **项目目录** 执行以下命令安装所需模块
|
2021-08-17 03:31:12 +00:00
|
|
|
|
```bash
|
2021-09-06 21:52:48 +00:00
|
|
|
|
pip install -r requirements.txt
|
2021-08-17 03:31:12 +00:00
|
|
|
|
```
|
2021-12-24 13:53:40 +00:00
|
|
|
|
注意:你可能需要使用管理员权限运行命令行
|
2021-08-17 03:31:12 +00:00
|
|
|
|
|
|
|
|
|
|
2021-08-16 10:14:17 +00:00
|
|
|
|
### **项目介绍**:
|
2021-12-24 13:53:40 +00:00
|
|
|
|
- [x] 支持 多账号 配置
|
|
|
|
|
- [x] 支持 Docker 部署
|
|
|
|
|
- [x] 支持 腾讯云函数 部署
|
|
|
|
|
- [x] 自动登录小米账号刷新社区 Cookie 实现自动化
|
|
|
|
|
- [x] 选择性启用小米社区拔萝卜签到
|
2022-08-22 00:17:35 +00:00
|
|
|
|
- [x] 选择性启用小米社区成长值签到
|
|
|
|
|
- [x] 自动完成以下小米社区成长值任务且不留下可见痕迹
|
|
|
|
|
- “浏览帖子超过10秒” 成长值任务
|
|
|
|
|
- “点赞他人帖子” 成长值任务
|
2021-08-16 10:14:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### **其他**:
|
2021-08-23 00:07:40 +00:00
|
|
|
|
* 在使用本脚本时请临时关闭网络代理工具及广告拦截程序
|
2021-09-06 21:52:48 +00:00
|
|
|
|
* 在服务器上使用前建议先使用服务器IP登录 `https://account.xiaomi.com`
|
2021-08-16 10:14:17 +00:00
|
|
|
|
* 建议配合 Python3 及 Crontab 使用
|
|
|
|
|
* **欢迎提供有关的思路,提交BUG以及更多完成社区其他任务方式,我们会认真对待~**
|
|
|
|
|
|
2021-08-17 03:31:12 +00:00
|
|
|
|
|
2021-12-24 13:53:40 +00:00
|
|
|
|
#### **贡献**:
|
2021-08-21 15:52:45 +00:00
|
|
|
|
|
2021-12-24 13:53:40 +00:00
|
|
|
|
如果你在使用过程中发现任何问题,可以 [提交 issue](https://github.com/0-8-4/miui-auto-tasks/issues/new) 或自行 Fork 修改后提交 Pull request
|
2021-08-21 15:52:45 +00:00
|
|
|
|
|
2021-12-24 13:53:40 +00:00
|
|
|
|
如果你要提交 Pull request,请确保你的代码风格和项目已有的代码保持一致,遵循 [PEP 8](https://www.python.org/dev/peps/pep-0008) ,变量命名清晰,有适当的注释
|
2021-08-16 10:14:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# **License**
|
2021-08-17 03:31:12 +00:00
|
|
|
|
```
|
|
|
|
|
MIT License
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2021 東雲研究所
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
```
|