All Projects → Womsxd → AutoMihoyoBBS

Womsxd / AutoMihoyoBBS

Licence: MIT license
米游社自动签到,支持:崩坏二、崩坏三、原神,米游币自动获取

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to AutoMihoyoBBS

genshin-schedule
🕑 Genshin farming scheduler
Stars: ✭ 74 (-85.98%)
Mutual labels:  genshin, genshin-impact
DoMiSo-genshin
Genshin impact Lyre Automatic player
Stars: ✭ 76 (-85.61%)
Mutual labels:  genshin, genshin-impact
Hilipedia
丘丘语语料库与词典 Hilichurlian Corpus and Dictionary
Stars: ✭ 33 (-93.75%)
Mutual labels:  genshin, genshin-impact
Teyvat.moe
A flexible, community-driven interactive website for Genshin Impact.
Stars: ✭ 137 (-74.05%)
Mutual labels:  genshin, genshin-impact
genshin.py
Modern API wrapper for Genshin Impact & Honkai Impact 3rd built on asyncio and pydantic. 原神 崩坏3
Stars: ✭ 199 (-62.31%)
Mutual labels:  genshin, genshin-impact
genshinstats
A dead python library that can get the stats of Genshin Impact players using Mihoyo's API.
Stars: ✭ 217 (-58.9%)
Mutual labels:  genshin, genshin-impact
Adachi-BOT
一个在 QQ 中运行的原神助手
Stars: ✭ 185 (-64.96%)
Mutual labels:  genshin, genshin-impact
GenShin-LauncherDIY
[原神启动器Plus] lightweight globalized Genshin Impact launcher. Support arbitrarily resolution ratio, account switching, client convertion, FPS unlocking and more!
Stars: ✭ 758 (+43.56%)
Mutual labels:  genshin, genshin-impact
Snap.Genshin
你想要的原神全家桶
Stars: ✭ 1,924 (+264.39%)
Mutual labels:  genshin, genshin-impact
GenshinPlayerQuery
根据原神uid查询玩家信息(基础数据、角色&装备、深境螺旋战绩等)
Stars: ✭ 261 (-50.57%)
Mutual labels:  genshin, genshin-impact
genshin-audio-exporter
Export audio files from Genshin Impact game data into different audio formats.
Stars: ✭ 83 (-84.28%)
Mutual labels:  genshin, genshin-impact
GenshinImpact-AHK-flex
AHK script for Genshin Impact
Stars: ✭ 80 (-84.85%)
Mutual labels:  genshin, genshin-impact
GenshinImpact
This repo contains a script meant to ease and help intel players with setting up their machine to be able to play this game.
Stars: ✭ 27 (-94.89%)
Mutual labels:  genshin, genshin-impact
cocogoat
A toolbox for Genshin Impact 100% running in browser. 纯网页端的原神工具箱,保证每一行代码都是熬夜加班打造。
Stars: ✭ 571 (+8.14%)
Mutual labels:  genshin, genshin-impact
genshin-db
npm package with searching API for Genshin Impact data of all in-game languages. Data parsed/organized directly from GenshinData repo.
Stars: ✭ 150 (-71.59%)
Mutual labels:  genshin, genshin-impact
Inventory Kamera
Scans Genshin Impact characters, artifacts, and weapons from the game window into a JSON file.
Stars: ✭ 348 (-34.09%)
Mutual labels:  genshin, genshin-impact
Genshin-fishing
Genshin auto fishing
Stars: ✭ 237 (-55.11%)
Mutual labels:  genshin, genshin-impact
gcsim
monte carlo combat simulation for genshin impact
Stars: ✭ 111 (-78.98%)
Mutual labels:  genshin-impact
GenshinImpact-Generator
Account generator for Genshin Impact
Stars: ✭ 38 (-92.8%)
Mutual labels:  genshin-impact
web
The source code for the genshin.dev frontend.
Stars: ✭ 55 (-89.58%)
Mutual labels:  genshin

米游社辅助签到

基于Python3的米游社辅助签到项目

本项目米游币部分参考XiaoMiku01/miyoubiAuto进行编写

  • 此项目的用途

    这是一个米游社的辅助签到项目,包含了米游币、崩坏2、崩坏3、原神,后续会支持未定事件簿

如何使用程序

  • 部署方法

    1. 使用Git点击此处下载本项目

    2. 下载Python3

    3. 解压本项目压缩包,在解压目录中Shift+右键 打开你的命令提示符cmd或powershell

    4. requirements.txt 是所需第三方模块,执行 pip install -r requirements.txt 安装模块

    5. 打开目录中的config文件夹复制config.json.example并改名为config.json,脚本的多用户功能靠读取不同的配置文件实现,你可以创建无数个自定义名字.json,脚本会扫描config目录下json为拓展名的文件,并按照名称顺序依次执行。

    6. 请使用vscode/notepad++等文本编辑器打开上一步复制好的配置文件

    7. 使用获取Cookie里面的方法来获取米游社Cookie

    8. 将复制的Cookie粘贴到config.json"cookie":" "中(在account里面)

      例子

      "cookie": "你复制的cookie"
    9. 在命令提示符(cmd)/powershell,输入python main.py来进行执行

    10. 多用户的请使用python main_multi.py,多用户在需要自动执行的情况下请使用python main_multi.py autorun

获取米游社Cookie

  1. 打开你的浏览器,进入无痕/隐身模式

  2. 由于米哈游修改了bbs可以获取的Cookie,导致一次获取的Cookie缺失,所以需要增加步骤

  3. 打开http://bbs.mihoyo.com/ys/并进行登入操作

  4. 在上一步登入完成后新建标签页,打开http://user.mihoyo.com/并进行登入操作 (如果你不需要自动获取米游币可以忽略这个步骤,并把mihoyobbsenable改为false即可)

  5. 按下键盘上的F12或右键检查,打开开发者工具,点击Console

  6. 输入

    var cookie=document.cookie;var ask=confirm('Cookie:'+cookie+'\n\nDo you want to copy the cookie to the clipboard?');if(ask==true){copy(cookie);msg=cookie}else{msg='Cancel'}

    回车执行,并在确认无误后点击确定。

  7. 此时Cookie已经复制到你的粘贴板上了

使用Docker运行

Docker的运行脚本基于Linux平台编写,暂未在Win平台测试。

将本项目Clone至本地后,请先按照上述步骤添加或修改配置文件。随后执行

docker-compose up -d

启动docker容器。
 
容器运行成功后可用

docker-compose logs -f

命令来查看程序输出。
 
若需要添加配置文件或修改配置文件,可直接在主机config文件夹中修改,修改的内容将实时同步在容器中。

每次运行Docker容器后,容器内将自动按照参数执行签到活动,签到完成后容器将默认在每天上午9:30运行一次,如果想自行修改时间可自行编辑docker-compose.yml文件中的CRON_SIGNIN,将其修改成想运行的时间。

使用云函数运行

腾讯云函数服务免费额度近期有变化,为了避免产生费用,建议切换到阿里云 函数计算 FC

  • 腾讯云
  1. 在本地完整运行一次。

  2. 打开并登录云函数控制台

  3. 新建云函数 - 自定义创建,函数类型选事件函数,部署方式选代码部署,运行环境选 Python3.6.

  4. 提交方法选本地上传文件夹,并在下方的函数代码处上传整个项目文件夹。

  5. 执行方法填写 index.main_handler,多用户请填写index.main_handler_mulit.

  6. 展开高级配置,将执行超时时间修改为 300 秒,其他保持默认。

  7. 展开触发器配置,选中自定义创建,触发周期选择自定义触发周期,并填写表达式0 0 10 * * * *(此处为每天上午 10 时运行一次,可以自行修改)

  8. 完成,enjoy it!

  • 阿里云

    1. 在本地完整运行一次。
    2. 打开并登录函数计算 FC。注意左上方显示的地区,可点击切换其他地区。
    3. 创建服务 (日志功能可能产生费用,建议关闭)
      1. 创建函数
      2. 从零开始创建
        1. 请求处理程序类型:处理事件请求
        2. 请求处理程序:index.main_handler,多用户请填写index.main_handler_mulit
        3. 配置触发器:触发器类型 定时触发器 异步调用。建议触发方式设为指定时间
        4. 点击创建
      3. 进入函数详情
        1. 打开函数配置
        2. 修改 环境信息 - 执行超时时间 为300秒。
    4. 测试运行
      1. 打开 函数详情
      2. 点击测试函数
    5. 完成

使用的第三方库

requests: github pypi

httpx: github pypi

crontab: github pypi

关于使用 Github Actions 运行

本项目不支持不推荐使用Github Actions来每日自动执行!

不会处理使用Github Actions执行有关的issues!

推荐使用 阿里云/腾讯云 的云函数来进行每日自动执行脚本。

Stargazers over time

Stargazers over time

License

MIT License

鸣谢

JetBrains

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].