一个自动化完成小米社区任务的脚本
 
 
Go to file
TardisX 47999be199
fix imp: typing (#102)
2023-09-20 22:09:55 +08:00
.github/workflows GitHub actions patch 2 (#65) 2022-11-28 14:32:44 +11:00
.idea 增加浏览个人主页和加入圈子任务 (#61) 2022-11-02 15:12:37 +11:00
utils v1.6.0 (#100) 2023-09-11 19:33:11 +08:00
.gitignore feat: multi account support (#46) 2021-12-24 21:53:40 +08:00
Dockerfile fix: COPY config.yaml on Dockerfile 2021-12-25 00:23:12 +08:00
LICENSE Create LICENSE 2021-08-16 11:41:57 +08:00
README.md fix imp: typing (#102) 2023-09-20 22:09:55 +08:00
config.yaml v1.6.0 (#100) 2023-09-11 19:33:11 +08:00
miuitask.py fix imp: typing (#102) 2023-09-20 22:09:55 +08:00
requirements.txt 添加推送功能 (#82) 2023-02-14 20:21:12 +11:00

README.md

MIUI Task

一个适用于 社区 4.0 模拟网络功能请求的脚本

996.icu GitHub Python DockerHub

我们收到反馈,部分用户已收到通知要求不得继续随意调用社区接口,否则社区账户将被永久封禁。
鉴于以上情况,我们作为项目维护者建议停用脚本。
感谢大家的支持谢谢所有Star和Fork的人。

关于项目:

東雲研究所 的某位大佬启发
最初的源码由大佬授权 0-8-4 使用 MIT 开源
项目初期由0-8-4TardisLX 进行维护,现已逐渐转为社区驱动 我们认为社区无权在无任何回报的情况下强制要求内测用户完成 KPI 任务,因此诞生了这个脚本

重要声明:

  • 虽然理论上本脚本不会影响社区账户安全,但您需要自行承担使用本脚本的后果

  • 我们不鼓励,不支持一切商业使用

    • 鉴于项目的特殊性,我们可能在任何时间 停止更新删除项目

使用说明

关于项目的详细使用方法请阅览 WiKi

项目依赖

  1. 需要前往 Python 官网自行下载自己系统对应的 Python 版本,或使用自己系统对应的包管理安装,推荐至少 Python 3.6 以上
https://www.python.org/downloads/
  1. Python 3 安装完成之后,请在 项目目录 执行以下命令安装所需模块
pip install -r requirements.txt

注意:你可能需要使用管理员权限运行命令行

项目介绍

  • 支持 多账号 配置
  • 支持 Docker 部署
  • 支持 腾讯云函数 部署
  • 支持 自动登录账号刷新社区 Cookie 以便于实现自动化
  • 绝大多数功能均可在配置文件中自行开关启用

⚠ 请注意,配置文件默认禁用了 MIUI Task 绝大多数模拟网络请求的功能能力,请注意修改配置文件按需启用。根据社区相关规则,模拟这些功能的网络请求可能存在一定风险。您需要自行承担使用本脚本的后果

配置推送

推送基于onepush

  • 推送名称 / notifier: bark

    参数大全 / params: {'required': ['key'], 'optional': ['title', 'sound', 'isarchive', 'icon', 'group', 'url', 'copy', 'autocopy']}

  • 推送名称 / notifier: custom

    参数大全 / params: {'required': ['url'], 'optional': ['method', 'datatype', 'data']}

  • 推送名称 / notifier: dingtalk

    参数大全 / params: {'required': ['token'], 'optional': ['title', 'secret', 'markdown']}

  • 推送名称 / notifier: discord

    参数大全 / params: {'required': ['webhook'], 'optional': ['title', 'username', 'avatar_url', 'color']}

  • 推送名称 / notifier: pushplus

    参数大全 / params: {'required': ['token'], 'optional': ['title', 'topic', 'markdown']}

  • 推送名称 / notifier: qmsg

    参数大全 / params: {'required': ['key'], 'optional': ['title', 'mode', 'qq']}

  • 推送名称 / notifier: serverchan

    参数大全 / params: {'required': ['sckey', 'title'], 'optional': []}

  • 推送名称 / notifier: serverchanturbo

    参数大全 / params: {'required': ['sctkey', 'title'], 'optional': ['channel', 'openid']}

  • 推送名称 / notifier: telegram

    参数大全 / params: {'required': ['token', 'userid'], 'optional': ['title', 'api_url']}

  • 推送名称 / notifier: wechatworkapp

    参数大全 / params: {'required': ['corpid', 'corpsecret', 'agentid'], 'optional': ['title', 'touser', 'markdown']}

  • 推送名称 / notifier: wechatworkbot

    参数大全 / params: {'required': ['key'], 'optional': ['title', 'markdown']}

  • required为必填参数optional为选填参数

配置参考:

ONEPUSH:
  notifier: telegram
  params:
    title: 
    markdown: false
    token: 123456789:XXXXXXXXXXXXXXXXXXXXXXXX
    userid: 114514
ONEPUSH:
  notifier: pushplus
  params:
    title: 
    token: XXXXXXXXXXXXXXXXXXXXXXXX
    markdown: false

其他

  • 在使用本脚本时请临时关闭网络代理工具及广告拦截程序
  • 在服务器上使用前建议先使用服务器IP登录 https://account.xiaomi.com
  • 如需定时自动化建议配合 Python3 及 Crontab 使用
  • 欢迎提供有关的思路提交BUG以及更多完成社区其他任务方式我们会认真对待~

贡献

如果你在使用过程中发现任何问题,可以 提交 issue 或自行 Fork 修改后提交 Pull request

如果你要提交 Pull request请确保你的代码风格和项目已有的代码保持一致遵循 PEP 8 ,变量命名清晰,有适当的注释

License

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.