Giter VIP home page Giter VIP logo

gamernotitle / mhyy Goto Github PK

View Code? Open in Web Editor NEW
57.0 4.0 50.0 55 KB

云·原神自动签到脚本,帮助你拿到每天的15分钟(Action已经被我禁用了,需要的话自行启用但不推荐;如果挂了就到这里找https://git.bili33.top/GamerNoTitle/MHYY)

Home Page: http://bili33.top/posts/MHYY-AutoCheckin-Manual-Gen2/

License: GNU Affero General Public License v3.0

Python 100.00%
automation cloud-gaming genshin-impact genshin-impact-cloud hoyoverse mhyy mihoyo

mhyy's Introduction

MHYY-AutoCheckin

MHYY-AutoCheckin

米哈云游(云原神)自动签到脚本

⚠️请不要进行宣传,谢谢!一旦发现宣传就删库跑路!使用过程中如果出现bug可能会使用您的日志进行错误追踪,详情请见隐私政策

要用Action跑请不要点Fork,点Use this template后在自己的号下创建一个仓库来跑,用Fork跑的时间会积累到本仓库,会导致本仓库被封!!!

这是一个可以帮助你每天自动进行米忽悠云原神签到的脚本,自动获取每日的15分钟(600分钟后无法获取,这是米忽悠定下的规矩,无法突破)

云·星穹铁道自动签到脚本https://github.com/GamerNoTitle/SRCloud-AutoCheckin

快速开始

请参阅文档进行配置,有问题请在issue中提出。

如果本仓库被封了就来这里找https://git.bili33.top/GamerNoTitle/MHYY

要是真的不会用就别不好意思开issue问啦,我在Sentry的后台看到了一堆不知道怎么形容的Bug

赞助

点击下面的Badge其中一个就可以跳转到相应页面,感谢老板的支持!

前往爱发电赞助 使用微信赞助 使用支付宝赞助

免责声明

一旦你fork了本仓库则代表你同意以下内容:

  • 所有账号被封禁的情况由使用者自行承担
  • 一切由使用本脚本造成的后果由使用者自行承担

友链

Node.js版的云原神15分钟获取器 带邮件发送日志功能 需自备服务器 HuanLinMaster/GenshinCloudPlayHelper

Contributions

Contribution

Stargazers over time

Stargazers over time

mhyy's People

Contributors

gamernotitle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mhyy's Issues

抱歉,使用青龙面板时报错

你好,在看完文档过后没有解决,很抱歉麻烦你。
在使用青龙面板时报错如下
1
环境变量配置如下
2
[ { "token": "xxxxx",//已抓包获取 "type": 16, "android": "", "version": "4.4.0", "deviceid": "xxxx",//已抓包获取 "devicename": "Unknown", "devicemodel": "Unknown", "appid": "", "analytics": false }, { "token": "xxxx2",//已抓包获取 "type": 16, "android": "", "version": "4.4.0", "deviceid": "xxxx",//已抓包获取 "devicename": "Unknown", "devicemodel": "Unknown", "appid": "", "analytics": false } ]

青龙面板上运行出现错误

开始执行... 2024-03-18 02:00:00

检测到 1 个账号,正在进行任务……
从官方API获取到云·原神最新版本号:4.5.0
为了避免同一时间签到人数太多导致被官方怀疑,开始休眠 48 秒
你当前拥有免费时长 298 分钟,畅玩卡状态为 未开通,拥有米云币 0 枚
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 198, in _new_conn
sock = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/usr/local/lib/python3.11/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 793, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 491, in _make_request
raise new_e
File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1099, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 616, in connect
self.sock = sock = self._new_conn()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/connection.py", line 213, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fafaf064e90>: Failed to establish a new connection: [Errno 111] Connection refused

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/connectionpool.py", line 847, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api-cloudgame.mihoyo.com', port=443): Max retries exceeded with url: /hk4e_cg_cn/gamer/api/getAnnouncementInfo (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafaf064e90>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/ql/data/scripts/GamerNoTitle_MHYY/main.py", line 110, in
announcement = r.get(AnnouncementURL, headers=headers, timeout=60)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api-cloudgame.mihoyo.com', port=443): Max retries exceeded with url: /hk4e_cg_cn/gamer/api/getAnnouncementInfo (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fafaf064e90>: Failed to establish a new connection: [Errno 111] Connection refused'))
Sentry is attempting to send 2 pending events
Waiting up to 2 seconds
Press Ctrl-C to quit

执行结束... 2024-03-18 02:01:52 耗时 112 秒     

报错

image

image

这个是什么情况,签到失败 , app我登进去才签到,这里失败了,

{
"token": "ai=4;ci=1;oi=2纯数字;ct=cf8d0f847d9ca0c034fd588eae28a3de64362fb8;si=b一大串字符672802;bi=hk4e_cn",
"type": "2",
"version": "4.1.0",
"android": "9",
"deviceid": "179af05b-4492-3gb9-a8b6-c33d08765e3420",
"devicename": "Blackshark SHARK KSR-AO",
"devicemodel": "SHARK KSR-AO",
"appid":"19纯数字4"
}

在github Action上运行报错

Run python3 main.py
python3 main.py
shell: /usr/bin/bash -e {0}
env:
pythonLocation: /opt/hostedtoolcache/Python/3.10.14/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.10.14/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.14/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.14/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.10.14/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.14/x64/lib
MHYY_CONFIG:
Traceback (most recent call last):
File "/home/runner/work/MHYY/MHYY/main.py", line 35, in
conf = ReadConf('MHYY_CONFIG')['accounts']
TypeError: 'NoneType' object is not subscriptable
Sentry is attempting to send 2 pending events
Waiting up to 2 seconds
Press Ctrl-C to quit
Error: Process completed with exit code 1.

accounts:

第一个账号

  • token: ******************************
    ype: 16
    sysver: Windows 10
    deviceid: Unknown
    devicename: Unknown
    devicemodel: Unknown
    appid: 4

青龙报错

开始执行... 2023-03-11 22:13:24

Traceback (most recent call last):
File "/ql/data/scripts/GamerNoTitle_MHYY-AutoCheckin/main.py", line 24, in
config = json.loads(os.environ.get('mhyy'))
File "/usr/local/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 14 (char 15)
Sentry is attempting to send 2 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit

执行结束... 2023-03-11 22:13:33 耗时 9 秒     

青龙面板报错

开始执行... 2024-03-16 23:20:53

Traceback (most recent call last):
File "/ql/data/scripts/GamerNoTitle_MHYY/main.py", line 35, in
conf = ReadConf('MHYY_CONFIG')['accounts']
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
Sentry is attempting to send 2 pending events
Waiting up to 2 seconds
Press Ctrl-C to quit

执行结束... 2024-03-16 23:20:57 耗时 4 秒     

Github Action报错

按照教程配置完成之后手动运行了一下
image
出现了ModuleNotFoundError: No module named 'yaml'
手动在 inquirement.txt 里面添加了 pyyaml

再次运行出现了
image
就不知道怎么解决了

云原神网页版的支持

云原神的网页版中可以从cookie获得deviceid,但是devicename和devicemodel该如何获得?
有没有什么简便的方式,大佬能给我这个蒟蒻讲讲吗

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.