Coder Social home page Coder Social logo

gamernotitle / mhyy Goto Github PK

View Code? Open in Web Editor NEW
50.0 3.0 48.0 57 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 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

Watchers

 avatar  avatar  avatar

mhyy's Issues

报错

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"
}

青龙面板上运行出现错误

开始执行... 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 秒     

青龙报错

开始执行... 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 秒     

云原神网页版的支持

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

Github Action报错

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

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

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

你好,在看完文档过后没有解决,很抱歉麻烦你。
在使用青龙面板时报错如下
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 } ]

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.