Coder Social home page Coder Social logo

caomeiyouren / auto_miyoushe_signin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goldencorner/genshin_resin_and_signin

1.0 0.0 0.0 1.46 MB

基于文字识别的米游社自动签到脚本

License: GNU Affero General Public License v3.0

Python 98.65% Batchfile 1.35%

auto_miyoushe_signin's Introduction

auto_miyoushe_signin

基于文字识别的米游社自动签到脚本。

所有功能通过文字识别实现,无需 cookie,很少出现验证码,目前真正实用的签到工具。

功能

  • 自动领取米游社签到福利
    • 包括原神、崩坏:星穹铁道、崩坏 3 等
    • 也支持米游社社区自动打卡
  • 支持企业微信、钉钉等多个推送渠道
    • 详情请前往 onepush 页面查看

环境要求(windows x64)

  • python >=3.6
  • 一个支持 adb 的模拟器

安装依赖

pip install -r requirements.txt

用法

  1. 复制根目录下的 config.example.yml 文件,并改为 config.yml
  2. 填写配置。
字段 是否必须 解释
ADB_PORT 必须 要连接的模拟器的 adb 端口,可查询各大模拟器文档获取
CLOCK_IN_BBS 可选 是否在对应游戏的米游社打卡,默认为 true
ONEPUSH_CONFIG 可选 onepush 相关配置,支持企业微信、钉钉等多个推送渠道
SIGNIN_GAMES 可选 要签到的游戏。名称必须和项目中的 miyoushe_bbskey 一致
AUTO_BIRTHDAY 可选 是否自动点击原神的留影叙佳期
  1. 启动已安装好米游社的模拟器

  2. 确认 adb 可用。若不可用,请添加 adb 到环境变量

    adb devices
  3. 运行 python auto_miyoushe_signin.py

  4. 查看运行结果

可能出现的问题

如何每日运行

  • 可在我的电脑中添加系统任务来每日运行

  • 修改脚本实现死循环运行

  • 其他方式每日触发脚本运行

  • 可参考以下 bat 脚本。实际使用中需移除中文注释,并将 bat 文件放在本项目根目录下。

  • chcp 65001
    @echo off
    @REM 请将下面的 VM_PATH 修改为你自己的模拟器的路径,此处以 MuMu 模拟器 12 为例
    set VM_PATH="D:\Program Files\MuMu\emulator\MuMuPlayer-12.0\shell"
    @REM 请将 MuMuPlayer.exe 修改 为你自己的模拟器名称
    start /d %VM_PATH% MuMuPlayer.exe
    
    @REM 等待模拟器启动
    timeout /t 90 /nobreak
    
    python auto_miyoushe_signin.py
    
    @REM 等待任务执行完毕
    timeout /t 5 /nobreak
    
    @REM 关闭模拟器。请将要关闭的程序名称修改为你自己的模拟器名称
    taskkill /F /IM MuMuPlayer.exe
    taskkill /F /IM MuMuVMMHeadless.exe
    taskkill /F /IM MuMuVMMSVC.exe
    
    exit

有部分游戏未签到/签到失败

  • 由于综合(大别野)是没有签到福利的,所以固定签到失败。(打卡功能是正常的)
  • 对于未绑定角色的游戏,固定签到失败。
  • 由于 tab 栏的限制,所以识别的时候只能识别到当前页面显示的所有 tab
    • 目前是按照 原神、综合、星穹铁道、绝区零、崩坏 3、未定事件簿、崩坏学园 2 的顺序来签到的
  • 可以修改配置中的 tab 排序,和项目中的一致即可
  • 也可以修改米游社的 tab 排序
  • 为减少 tab 问题,可减少 tab 的数量,使之可以在一个屏幕内展示出来

作者

👤 CaoMeiYouRen

📝 License

Copyright © 2024 CaoMeiYouRen.
This project is AGPL-3.0 licensed.

auto_miyoushe_signin's People

Contributors

goldencorner avatar caomeiyouren avatar

Stargazers

feng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.