Coder Social home page Coder Social logo

y1ndan / genshinhelper2 Goto Github PK

View Code? Open in Web Editor NEW
527.0 7.0 239.0 60 KB

A Python library for miHoYo bbs and HoYoLAB Community. genshin 原神签到小助手 树脂提醒 微博超话 米游社米游币 崩坏3

Home Page: https://www.yindan.me

License: GNU General Public License v3.0

Python 97.44% Shell 2.56%
genshin genshin-impact genshinhelper genshin-impact-helper api hoyolab mihoyo

genshinhelper2's Introduction

genshinhelper2's People

Contributors

chingkingm avatar meshate avatar moonshadowillusion avatar neppure avatar night-stars-1 avatar thecgdf avatar y1ndan 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  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  avatar  avatar  avatar

genshinhelper2's Issues

树脂溢出提醒失败

image

config.json RESIN_THRESHOLD = 150,树脂已经 155,超过了 RESIN_THRESHOLD 值,看 log 没有进行通知。

米币签到过程建议增加一些冗余度

2022-01-01 00:06:38 INFO Preparing to view post XXXX
2022-01-01 00:06:41 INFO OK
2022-01-01 00:06:41 INFO Preparing to view post XXXX
2022-01-01 00:06:45 INFO OK
2022-01-01 00:06:45 INFO Preparing to view post XXXX
2022-01-01 00:06:48 INFO post not exist

post not exist就会导致少完成一个任务

腾讯云函数设置问题

想请问一下,我现在用的腾讯云函数,CHECK_RESIN_SECS这个参数该怎么理解呢,是不是自从函数开始运行开始每隔x秒去检测树脂。但是腾讯云函数执行超时时间最多900秒,那900秒之后这个检测就被终止了,该怎么解决呢? 我想签到的时候ONEPUSH一次信息,然后树脂达到数量ONEPUSH一次信息。

原神签到接口有概率签不上

'https://api-takumi.mihoyo.com/event/bbs_sign_reward/sign'
这个接口返回OK 然后再去调用
'https://api-takumi.mihoyo.com/event/bbs_sign_reward/info?region={}&act_id={}&uid={}'
返回
info list [{'retcode': 0, 'message': 'OK', 'data': {'total_sign_day': 19, 'today': '2022-08-25', 'is_sign': False, 'first_bind': False, 'is_sub': False, 'month_first': False, 'sign_cnt_missed': 5}}]

其中'is_sign'还是False
我有两个号,大号签1-2次就能签上,小号调了4,5次签到接口返回还是 False

2.1.1米游币签到失败

2022-08-19 09:46:33 ERROR TRACEBACK
Traceback (most recent call last):
File "D:/xcode/PycharmProjects/genshinhelper2.1.1/genshincheckinhelper/main.py", line 245, in run_task
raw_result = func(cookie)
File "D:/xcode/PycharmProjects/genshinhelper2.1.1/genshincheckinhelper/main.py", line 104, in task4
r = t.run(26)
File "D:\xcode\PycharmProjects\genshinhelper2.1.1\genshinhelper\mihoyo.py", line 274, in run
[self.sign(i) for i in self.game_ids if not state['is_sign']]
File "D:\xcode\PycharmProjects\genshinhelper2.1.1\genshinhelper\mihoyo.py", line 274, in
[self.sign(i) for i in self.game_ids if not state['is_sign']]
File "D:\xcode\PycharmProjects\genshinhelper2.1.1\genshinhelper\mihoyo.py", line 216, in sign
response = request('post', url, headers=self.headers, cookies=self.cookie).json()
File "D:\xcode\PycharmProjects\genshinhelper2.1.1\requests\models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "D:\Program Files\Python\Python37\lib\json_init_.py", line 348, in loads
return _default_decoder.decode(s)
File "D:\Program Files\Python\Python37\lib\json\decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 5 (char 4)

8.8 起获取不到实时便笺信息了

版本:2.1.1

cookie_token 正确的情况:

{'data': None, 'message': 'Please login', 'retcode': 10001}
Traceback (most recent call last):
  File "/home/goreliu/git/site/www/genshin/genshin.py", line 32, in <module>
    for e in daily_note['expeditions']:
KeyError: 'expeditions'

cookie_token 错误的情况:

2022-08-08 10:49:34 ERROR 登录失效,请重新登录
Traceback (most recent call last):
  File "/home/goreliu/git/site/www/genshin/genshin.py", line 23, in <module>
    for i in ys.roles_info:
  File "/usr/lib/python3.10/site-packages/genshinhelper/core.py", line 58, in roles_info
    raise GenshinHelperException(response.get('message'))
genshinhelper.exceptions.GenshinHelperException: 登录失效,请重新登录

今天凌晨一点多还是正常的。重新登录也无效(cookie_token 不会改变),不知道是接口改了还是什么原因。用同样的 cookie_token,每日签到是正常的。

绝区零的签到无效

下载的2.0.5的serverless.zip,将其中genshinhelper文件夹删掉,替换为此处下载的,压缩后上传云函数,测试后其他功能正常,但绝区零不会自动签到

获取探险信息失败报错

a2eb238bd3ce8e3ae1a58d6bfdcea6d

日志信息如下:

2021-12-29 15:43:14 INFO Preparing to get Yuan Shen daily note ...
2021-12-29 15:43:14 INFO 实时便笺
    �浑水摸鱼真君 58 天空岛
    原粹树脂: 45 / 160 将于2021-12-30 06:57:36全部恢复
    今日委托: 4 / 4
    周本减半: 0 / 3
    探索派遣: 5 / 5
      └─ Ambor      剩余时间   8小时40分钟
      └─ Fischl     剩余时间   3小时39分钟
      └─ Chongyun   剩余时间   3小时39分钟
      └─ Bennett    剩余时间   3小时39分钟
      └─ Sara       剩余时间   3小时39分钟

2021-12-29 15:43:14 INFO 原神签到小助手提醒您: 未满足推送条件, 监控模式运行中...
2021-12-29 15:43:14 INFO Preparing to get user game roles information ...
2021-12-29 15:43:15 INFO Preparing to get Yuan Shen daily note ...
Traceback (most recent call last):
  File "/app/./genshincheckinhelper/main.py", line 399, in <module>
    main()
  File "/app/./genshincheckinhelper/main.py", line 388, in main
    run_once()
  File "/app/./genshincheckinhelper/main.py", line 384, in run_once
    job2()
  File "/app/./genshincheckinhelper/main.py", line 309, in job2
    for e in daily_note['expeditions']:
KeyError: 'expeditions'

博客上的配置文件模板`config.example.json`已失效

config.example.json

我进docker 看了下, 应该是:

{
  "LANGUAGE": "zh",
  "RANDOM_SLEEP_SECS_RANGE": "0-300",
  "CHECK_IN_TIME": "01:00",
  "CHECK_RESIN_SECS": 900,
  "RESIN_THRESHOLD": 150,
  "RESIN_TIMER_DO_NOT_DISTURB": "23:00-07:00",
  "COOKIE_MIHOYOBBS": "account_id=xxx;cookie_token=xxx",
  "COOKIE_RESIN_TIMER": "",
  "COOKIE_BH3": "",
  "COOKIE_MIYOUBI": "",
  "CLOUD_GENSHIN": [
    {
      "x-rpc-combo_token": "",
      "x-rpc-client_type": "",
      "x-rpc-app_version": "",
      "x-rpc-sys_version": "",
      "x-rpc-channel": "",
      "x-rpc-device_id": "",
      "x-rpc-device_name": "",
      "x-rpc-device_model": "",
      "x-rpc-app_id": "",
      "Referer": "https://app.mihoyo.com",
      "Host": "api-cloudgame.mihoyo.com",
      "Connection": "Keep-Alive",
      "Accept-Encoding": "gzip",
      "User-Agent": "okhttp/3.14.9"
    }
  ],
  "COOKIE_HOYOLAB": "",
  "COOKIE_WEIBO": "",
  "COOKIE_KA": "",
  "SHOPTOKEN": "",
  "ONEPUSH": {
    "notifier": "",
    "params": {
      "markdown": false
    }
  }

希望能更新下配置参数说明, CLOUD_GENSHIN 这个新增的参数对于用docker的用户很难找到
配置参数说明

原神签到失效了

日志:

You have 1 「原神签到福利」 account configured.
Preparing to perform task for account 1...
Preparing to get user game roles information ...
Starting new HTTPS connection (1): api-takumi.mihoyo.com:443
https://api-takumi.mihoyo.com:443 "GET /binding/api/getUserGameRolesByCookie?game_biz=hk4e_cn HTTP/1.1" 405 None
TRACEBACK
Traceback (most recent call last):
  File "/var/user/genshincheckinhelper/main.py", line 245, in run_task
    raw_result = func(cookie)
  File "/var/user/genshincheckinhelper/main.py", line 90, in task2
    r = t.sign()
  File "/var/user/genshinhelper/core.py", line 115, in sign
    user_data = self.user_data
  File "/var/user/genshinhelper/core.py", line 101, in user_data
    sign_info = self.sign_info
  File "/var/user/genshinhelper/mihoyo.py", line 37, in sign_info
    roles_info = self.roles_info
  File "/var/user/genshinhelper/core.py", line 55, in roles_info
    response = request('get', url, headers=self.headers, cookies=self.cookie).json()
  File "/var/user/requests/models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "/var/lang/python3/lib/python3.6/json/__init__.py", line 354, in loads
    return _default_decoder.decode(s)
  File "/var/lang/python3/lib/python3.6/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/var/lang/python3/lib/python3.6/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
RESULT:
🏆 原神签到福利
☁️ ✔ 0 · ✖ 1
🌈 No.1:
    Expecting value: line 1 column 1 (char 0)

米游社签到报错

2022-01-09 09:33:40 ERROR TRACEBACK
Traceback (most recent call last):
File "/app/./genshincheckinhelper/main.py", line 245, in run_task
raw_result = func(cookie)
File "/app/./genshincheckinhelper/main.py", line 90, in task2
r = t.sign()
File "/usr/local/lib/python3.10/site-packages/genshinhelper/core.py", line 114, in sign
user_data = self.user_data
File "/usr/local/lib/python3.10/site-packages/genshinhelper/core.py", line 103, in user_data
current_reward = self.current_reward
File "/usr/local/lib/python3.10/site-packages/genshinhelper/core.py", line 84, in current_reward
return [
File "/usr/local/lib/python3.10/site-packages/genshinhelper/core.py", line 85, in
self.get_current_reward(i['total_sign_day'], i['is_sign'])
KeyError: 'total_sign_day'
2022-01-09 09:33:40 INFO RESULT:
🏆 原神签到福利
☁️ ✔ 0 · ✖ 1
🌈 No.1:
'total_sign_day'

2022-01-09 09:33:40 INFO Preparing to send notification ...
2022-01-09 09:33:43 INFO End of process run

total_sign_day问题

FunctionCompute python3 runtime inited.
FC Invoke Start RequestId: 3e30b06a-2aea-4b2c-9b2d-9b369c16330f
2022-08-26 00:42:10 3e30b06a-2aea-4b2c-9b2d-9b369c16330f [INFO]
+----------------------------------------------------------------+
| 𒆙 Genshin Check-In Helper v1.0.3 |
+----------------------------------------------------------------+
Project : genshinhelper
Description : More than check-in for Genshin Impact.
PKG_Version : 2.1.2
Author : 银弹GCell(y1ndan)
Blog : https://www.yindan.me
Channel : https://t.me/genshinhelperupdates

2022-08-26 00:42:10 3e30b06a-2aea-4b2c-9b2d-9b369c16330f [INFO] Sleep for 264 seconds...
2022-08-26 00:46:34 3e30b06a-2aea-4b2c-9b2d-9b369c16330f [INFO] Starting...
2022-08-26 00:46:34 3e30b06a-2aea-4b2c-9b2d-9b369c16330f [INFO] You have 1 「原神签到福利」 account configured.
2022-08-26 00:46:34 3e30b06a-2aea-4b2c-9b2d-9b369c16330f [INFO] Preparing to perform task for account 1...
2022-08-26 00:46:34 3e30b06a-2aea-4b2c-9b2d-9b369c16330f [INFO] Preparing to get user game roles information ...
2022-08-26 00:46:34 3e30b06a-2aea-4b2c-9b2d-9b369c16330f [INFO] Preparing to get check-in information ...
2022-08-26 00:46:34 3e30b06a-2aea-4b2c-9b2d-9b369c16330f [ERROR] TRACEBACK
Traceback (most recent call last):
File "/code/genshincheckinhelper/main.py", line 245, in run_task
raw_result = func(cookie)
File "/code/genshincheckinhelper/main.py", line 90, in task2
r = t.sign()
File "/code/genshinhelper/core.py", line 115, in sign
user_data = self.user_data
File "/code/genshinhelper/core.py", line 103, in user_data
current_reward = self.current_reward
File "/code/genshinhelper/core.py", line 86, in current_reward
for i in sign_info
File "/code/genshinhelper/core.py", line 86, in
for i in sign_info
KeyError: 'total_sign_day'2022-08-26T04:46:34.288Z 3e30b06a-2aea-4b2c-9b2d-9b369c16330f [INFO] RESULT:
🏆 原神签到福利
☁️ ✔ 0 · ✖ 1
🌈 No.1:
'total_sign_day'

2022-08-26 00:46:34 3e30b06a-2aea-4b2c-9b2d-9b369c16330f [INFO] Preparing to send notification ...
2022-08-26 00:46:34 3e30b06a-2aea-4b2c-9b2d-9b369c16330f [INFO] End of process run
FC Invoke End RequestId: 3e30b06a-2aea-4b2c-9b2d-9b369c16330f

签到失败了,使用最新版也是这样

START RequestId:e3299c39-d43f-4991-8a8a-531aa7d7baa8

ERROR RequestId:e3299c39-d43f-4991-8a8a-531aa7d7baa8 Result:{"errorCode":-1,"errorMessage":"ServiceSuspended","statusCode":402}

END RequestId:e3299c39-d43f-4991-8a8a-531aa7d7baa8

Report RequestId:e3299c39-d43f-4991-8a8a-531aa7d7baa8 Duration:0ms Memory:128MB MemUsage:0.000000MB

请问这是为什么呢?

找到原因了 好像是腾讯云函数服务不再免费了

新版本发生米游社签到显示成功但实际失败的问题

部署环境为华为云函数的python3.6,单个函数包含4个账号的cookies信息,并使用企业微信推送消息。


更新到2.1.1后发现有时签到失败,即登录游戏后没有奖励邮件,米游社签到页面也显示没有签到,但推送消息和日志显示OK。如果签到成功,那么多次签到应提示【你已经签到过了】,但现在多次触发仍然显示【OK】,直到某一次成功为止,如下图:
1


经查,云函数日志并无明显错误信息,日志如下:

执行成功
函数返回
日志
2022-08-10T22:50:49Z Start invoke request '23a2496a-75f8-472d-b17a-b8dfca19ec0e', version: latest
�奖励...
2022-08-10 22:51:13 INFO 准备领取签到福利...
2022-08-10 22:51:13 INFO 准备获取旅行者札记...
2022-08-10 22:51:13 INFO Preparing to perform task for account 3...
2022-08-10 22:51:13 INFO 准备获取角色信息...
2022-08-10 22:51:13 INFO 准备获取签到信息...
2022-08-10 22:51:14 INFO 准备获取月度奖励...
2022-08-10 22:51:14 INFO 准备领取签到福利...
2022-08-10 22:51:14 INFO 准备获取旅行者札记...
2022-08-10 22:51:14 INFO Preparing to perform task for account 4...
2022-08-10 22:51:14 INFO 准备获取角色信息...
2022-08-10 22:51:14 INFO 准备获取签到信息...
2022-08-10 22:51:14 INFO 准备获取月度奖励...
2022-08-10 22:51:15 INFO 准备领取签到福利...
2022-08-10 22:51:15 INFO 准备获取旅行者札记...
2022-08-10 22:51:15 INFO RESULT:
🏆 原神签到福利
☁️ ✔ 4 · ✖ 0
🌈 No.1:
####2022-08-11####
🔅茨木华扇 60 天空岛
今日奖励: 原石 × 20
本月累签: 11 天
签到结果: OK
旅行者 8 月札记
💠原石: 1900
🌕摩拉: 2181651
##################
🌈 No.2:
####2022-08-11####
🔅Vesperia 60 天空岛
今日奖励: 原石 × 20
本月累签: 11 天
签到结果: OK
旅行者 8 月札记
💠原石: 1900
🌕摩拉: 2228048
##################
🌈 No.3:
####2022-08-11####
🔅Raven 60 天空岛
今日奖励: 原石 × 20
本月累签: 11 天
签到结果: OK
旅行者 8 月札记
💠原石: 2654
🌕摩拉: 3272083
##################
🌈 No.4:
####2022-08-11####
🔅真狐狸 59 天空岛
今日奖励: 摩拉 × 5000
本月累签: 10 天
签到结果: OK
旅行者 8 月札记
💠原石: 1820
🌕摩拉: 1325300
##################
2022-08-10 22:51:15 INFO Preparing to send notification ...
2022-08-10 22:51:15 INFO End of process run
2022-08-10T22:51:15Z Finish invoke request '23a2496a-75f8-472d-b17a-b8dfca19ec0e', duration: 27359.916ms, billing duration: 27360ms, memory used: 35.508MB, billing memory: 128MB


如果各位有解决办法,或者需要更多信息来排除问题,请指导我,感谢。

CLOUD_GENSHIN变量。

CLOUD_GENSHIN变量。应该取https://api-cloudgame.mihoyo.com/hk4e_cg_cn/wallet/wallet/get包里的哪个字段呀或者格式是什么
填默认的cookie和cookie token都报错

2022-08-25 21:12:06 INFO You have 1 「云原神签到姬」 account configured.
2022-08-25 21:12:06 INFO Preparing to perform task for account 1...
2022-08-25 21:12:06 ERROR Request failed: 'str' object has no attribute 'items'
2022-08-25 21:12:06 INFO Trying to reconnect in 5 seconds (1/3)...
2022-08-25 21:12:11 ERROR Request failed: 'str' object has no attribute 'items'
2022-08-25 21:12:11 INFO Trying to reconnect in 5 seconds (2/3)...
2022-08-25 21:12:16 ERROR Request failed: 'str' object has no attribute 'items'
2022-08-25 21:12:16 INFO Trying to reconnect in 5 seconds (3/3)...
2022-08-25 21:12:21 ERROR TRACEBACK
Traceback (most recent call last):
File "/app/./genshincheckinhelper/main.py", line 245, in run_task
raw_result = func(cookie)
File "/app/./genshincheckinhelper/main.py", line 120, in task5
r = gh.get_cloudgenshin_free_time(cookie)
File "/usr/local/lib/python3.10/site-packages/genshinhelper/cloudgenshin.py", line 13, in get_cloudgenshin_free_time
return request('get', url, headers=headers).json()
File "/usr/local/lib/python3.10/site-packages/genshinhelper/utils.py", line 217, in request
raise e
File "/usr/local/lib/python3.10/site-packages/genshinhelper/utils.py", line 213, in request
response = s.request(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 573, in request
prep = self.prepare_request(req)
File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 484, in prepare_request
p.prepare(
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 369, in prepare
self.prepare_headers(headers)
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 489, in prepare_headers
for header in headers.items():
AttributeError: 'str' object has no attribute 'items'

BUG:LANGUAGE 获取错误

看了源码,LANGUAGE 其实是从 操作系统的环境变量 LANGUAGE 获取的,如果没有的话默认 en,config.json 配置文件里面也有 LANGUAGE 参数,那就是个摆设。

有云部署的教程么

genshinhelper2怎么在腾讯云函数使用,之前跟着教程做的,希望能再出一个教程。想结合discord推送树脂信息,谢谢大佬

在特定情况下,原神签到福利报错:list index out of range

当有角色等级不满15级时,
("genshinhelper/mihoyo.py", line 56, in get_travelers_dairy)
在 get traveler's dairy 时 response 会返回 {'data': None, 'message': '等级不足', 'retcode': -120},

这会导致"genshincheckinhelper/main.py", line 91, in task2 中的
d = t.month_dairy 列表缺少对应的元素(角色签到奖励信息),

并且"genshincheckinhelper/main.py", line 73, in task_common中的
if d and d[i] 并不能判断列表d[i]是否存在,如果不存在将直接报错:IndexError: list index out of range

在一台被米游社API屏蔽的VPS上光速签到

2021-12-26 10:58:58 INFO Preparing to send notification ...
2021-12-26 10:58:58 INFO End of process run
2021-12-26 10:58:58 INFO Preparing to get user game roles information ...
2021-12-26 10:58:58 INFO Preparing to get Yuan Shen daily note ...
Traceback (most recent call last):
  File "/app/./genshincheckinhelper/main.py", line 399, in <module>
    main()
  File "/app/./genshincheckinhelper/main.py", line 388, in main
    run_once()
  File "/app/./genshincheckinhelper/main.py", line 384, in run_once
    job2()
  File "/app/./genshincheckinhelper/main.py", line 303, in job2
    daily_note = ys.get_daily_note(i['game_uid'], i['region'])
  File "/usr/local/lib/python3.10/site-packages/genshinhelper/mihoyo.py", line 90, in get_daily_note
    response = request('get', url, headers=get_headers(with_ds=True, new_ds=True, params=payload), params=payload, cookies=self.cookie).json()
  File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  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 1 column 1 (char 0)
2021-12-26 10:58:59 INFO 

这个异常没 catch

微信积分商城关闭

微信积分商城似乎目前已经关闭,微信原神官方入口已消失,微信积分商城接口已无法连接,域名无法查找到主机,目前没看到公告,不知是临时关闭还是永久关闭。

check-in sample code

Hi, I was wondering how I could use this repo to implement the check-in function for genshin impact in my own python project. Let's say I have a cookie for an account. A code snippet would be helpful.

米游社任务全失败了

运行环境:
ubuntu20.04 docker

运行日志:
2022-09-16 06:02:25 ERROR TRACEBACK
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
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 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/./genshincheckinhelper/main.py", line 245, in run_task
raw_result = func(cookie)
File "/app/./genshincheckinhelper/main.py", line 104, in task4
r = t.run(26)
File "/usr/local/lib/python3.10/site-packages/genshinhelper/mihoyo.py", line 298, in run
posts = self.get_posts(forum_id)
File "/usr/local/lib/python3.10/site-packages/genshinhelper/mihoyo.py", line 252, in get_posts
response = request('get', url).json()
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2022-09-16 06:02:25 INFO Preparing to perform task for account 2...
2022-09-16 06:02:25 INFO Preparing to get user missions state ...
2022-09-16 06:02:26 INFO Preparing to check-in for 崩坏3 ...
2022-09-16 06:02:26 INFO Preparing to check-in for 原神 ...
2022-09-16 06:02:26 INFO Preparing to check-in for 崩坏2 ...
2022-09-16 06:02:27 INFO Preparing to check-in for 未定 事件簿 ...
2022-09-16 06:02:27 INFO Preparing to check-in for 大别 野 ...
2022-09-16 06:02:27 INFO Preparing to check-in for 崩坏: 星穹铁道 ...
2022-09-16 06:02:28 INFO Preparing to check-in for 绝区 零 ...
2022-09-16 06:02:28 INFO Preparing to get posts of 原神 ...
2022-09-16 06:02:28 ERROR TRACEBACK
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
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 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/./genshincheckinhelper/main.py", line 245, in run_task
raw_result = func(cookie)
File "/app/./genshincheckinhelper/main.py", line 104, in task4
r = t.run(26)
File "/usr/local/lib/python3.10/site-packages/genshinhelper/mihoyo.py", line 298, in run
posts = self.get_posts(forum_id)
File "/usr/local/lib/python3.10/site-packages/genshinhelper/mihoyo.py", line 252, in get_posts
response = request('get', url).json()
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2022-09-16 06:02:28 INFO Preparing to perform task for account 3...
2022-09-16 06:02:28 INFO Preparing to get user missions state ...
2022-09-16 06:02:29 INFO Preparing to check-in for 崩坏3 ...
2022-09-16 06:02:29 INFO Preparing to check-in for 原神 ...
2022-09-16 06:02:30 INFO Preparing to check-in for 崩坏2 ...
2022-09-16 06:02:30 INFO Preparing to check-in for 未定 事件簿 ...
2022-09-16 06:02:30 INFO Preparing to check-in for 大别 野 ...
2022-09-16 06:02:31 INFO Preparing to check-in for 崩坏: 星穹铁道 ...
2022-09-16 06:02:31 INFO Preparing to check-in for 绝区 零 ...
2022-09-16 06:02:31 INFO Preparing to get posts of 原神 ...
2022-09-16 06:02:32 ERROR TRACEBACK
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
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 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/./genshincheckinhelper/main.py", line 245, in run_task
raw_result = func(cookie)
File "/app/./genshincheckinhelper/main.py", line 104, in task4
r = t.run(26)
File "/usr/local/lib/python3.10/site-packages/genshinhelper/mihoyo.py", line 298, in run
posts = self.get_posts(forum_id)
File "/usr/local/lib/python3.10/site-packages/genshinhelper/mihoyo.py", line 252, in get_posts
response = request('get', url).json()
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2022-09-16 06:02:32 INFO Preparing to perform task for account 4...
2022-09-16 06:02:32 INFO Preparing to get user missions state ...
2022-09-16 06:02:32 INFO Preparing to check-in for 崩坏3 ...
2022-09-16 06:02:32 INFO Preparing to check-in for 原神 ...
2022-09-16 06:02:33 INFO Preparing to check-in for 崩坏2 ...
2022-09-16 06:02:33 INFO Preparing to check-in for 未定 事件簿 ...
2022-09-16 06:02:33 INFO Preparing to check-in for 大别 野 ...
2022-09-16 06:02:34 INFO Preparing to check-in for 崩坏: 星穹铁道 ...
2022-09-16 06:02:34 INFO Preparing to check-in for 绝区 零 ...
2022-09-16 06:02:35 INFO Preparing to get posts of 原神 ...
2022-09-16 06:02:35 ERROR TRACEBACK
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
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 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/./genshincheckinhelper/main.py", line 245, in run_task
raw_result = func(cookie)
File "/app/./genshincheckinhelper/main.py", line 104, in task4
r = t.run(26)
File "/usr/local/lib/python3.10/site-packages/genshinhelper/mihoyo.py", line 298, in run
posts = self.get_posts(forum_id)
File "/usr/local/lib/python3.10/site-packages/genshinhelper/mihoyo.py", line 252, in get_posts
response = request('get', url).json()
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

推送截图:
Screenshot_2022-09-16-08-57-28-228-edit_com tencent mm

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.