Git Product home page Git Product logo

yuanshen_user_info's Issues

[API ERROR] Invalid Request

近日尝试调用API,在添加最新cookies(从米游社网页版抓取来的)之后仍得到返回结果:
{"data":null,"message":"invalid request","retcode":-10001}

怀疑可能是API进行了更新...?

DS已失效

据米游社通知,app2.10及以下版本将无法使用游戏战绩功能

闲聊,以及一些其他的

您好,感谢您的开源精神,按照您的项目,我使用 Node.js 语言做了一个封装 https://github.com/Dragon-Fish/genshin-kit

但其实我也仅仅做了一个移植的工作,一旦米游社的协议发生变化,我还是得到您这里来《借鉴》😂

作为一个代码爱好者和原神玩家,我十分希望可以和您交流学习,但在这里说可能不太合适,如果您不介意可以通过 这个 org 页面上的邮箱联系到我~

API报错

{"data":null,"message":"Please login","retcode":10001}

运行ys_UserInfoGet.py报错

正在查询UIDxxxxxxxxx的原神信息
1 validation error for GenshinUserData
stats -> win_rate
field required (type=value_error.missing)

在线求助,希望与大佬交流

通过阅读了前后端的代码,然后用java重写调用这个接口,但是接口返回的数据只有invalid request,后使用postman或一些其他工具调这个接口也是报这个问题,想不通了,想请教请教大佬,加我qq就行2522747861,非常感谢

居然在这里看到了DS的计算方法

我以前写了一个这个角色信息查询的前端页面,后端也利用了这个接口,当时还没有做鉴权

然后作死发NGA后被秒封。

项目地址:https://github.com/babalae/genshin-info

最近有时间又抓包看了下,发现有个DS的请求头。没找到它的生成方法,居然在这里找到的。

我可以使用这段代码吗?会注明来源,希望mhy不要再和谐了:joy:

def DSGet():
    mhyVersion = "2.1.0"
    n = md5(mhyVersion)
    i = str(int(time.time()))
    r = ''.join(random.sample(string.ascii_lowercase + string.digits, 6))
    c = md5("salt=" + n + "&t="+ i + "&r=" + r)
    return i + "," + r + "," + c

cookie有刷新

cookies似乎有时间限制,当发送cookies给机器人群聊里已经绑定完米游社id和原神id,发送签到机器人提示签到失败,请检查Cookies是否失效。

新的角色圣遗物以及命座查询接口

POST

https://api-takumi.mihoyo.com/game_record/genshin/api/character

请求内容样例:

{"character_ids":[10000034,10000025,10000005],"role_id":"100000000","server":"cn_gf01"}

顺带一提

https://api-takumi.mihoyo.com/game_record/genshin/api/index

新增了区域探索度和声望等级的返回。

感觉作为一个账号信息查询脚本不返回账号名称,等级什么的有点奇怪

大佬您好!最近在改进的一个bot用到了您的脚本XiaoMiku01/PaimonBot
这个bot会通过uid自动生成一张图片发送到QQ,我看了下源码发现已经留了显示等级头像的位置(如图左右上角)但是被注掉了
image

看了下米忽悠的那个接口确实没有返回昵称等级什么的信息(太怪了,貌似米游社显示那一页的信息要调好几个不同的接口?)
大佬方便的话能否加入返回账号昵称等级之类的功能呢
如果不方便的话可否提供下对应的接口,我自己解析,谢谢啦

查询时报错

查询时报错提示
Traceback (most recent call last):
File "xxx\ys_test.py", line 278, in
print(infoQuery('xxx'))
File "xxx\ys_test.py", line 263, in infoQuery
UidInfo = dataAnalysis(uid)
File "xxx\ys_test.py", line 114, in dataAnalysis
data = req.get_user_info(userid)
File "xxx\main.py", line 174, in get_user_info
return self._get_user_info(uid, GetInfo, GenshinUserData)
File "xxx\main.py", line 166, in _get_user_info
return func_ret(**getdata["data"])
File "pydantic\main.py", line 406, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for GenshinUserData
stats -> win_rate
field required (type=value_error.missing)
问题出在_get_user_info里return func_ret(**getdata["data"])这一行
不知道怎么修复希望看到能更新一下或者指点一下怎么修复这个问题

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.