womsxd / yuanshen_user_info Goto Github PK
View Code? Open in Web Editor NEW原神个人信息查询
License: MIT License
原神个人信息查询
License: MIT License
近日尝试调用API,在添加最新cookies(从米游社网页版抓取来的)之后仍得到返回结果:
{"data":null,"message":"invalid request","retcode":-10001}
怀疑可能是API进行了更新...?
据米游社通知,app2.10及以下版本将无法使用游戏战绩功能
如题,小问题就不pr了23333
我传入的b按照讨论里面lulu佬的写法写好了,其他ds、md5算法以及header和url都和index 的写法一样的,传回的还是invallid requests,最好直接写一下可以参考[哈哈]
您好,感谢您的开源精神,按照您的项目,我使用 Node.js 语言做了一个封装 https://github.com/Dragon-Fish/genshin-kit
但其实我也仅仅做了一个移植的工作,一旦米游社的协议发生变化,我还是得到您这里来《借鉴》😂
作为一个代码爱好者和原神玩家,我十分希望可以和您交流学习,但在这里说可能不太合适,如果您不介意可以通过 这个 org 页面上的邮箱联系到我~
{"data":null,"message":"Please login","retcode":10001}
RT
咕咕咕
我有个pythonQQ机器人
我想给他接入
米游社 原神
正在查询UIDxxxxxxxxx的原神信息
1 validation error for GenshinUserData
stats -> win_rate
field required (type=value_error.missing)
通过阅读了前后端的代码,然后用java重写调用这个接口,但是接口返回的数据只有invalid request,后使用postman或一些其他工具调这个接口也是报这个问题,想不通了,想请教请教大佬,加我qq就行2522747861,非常感谢
我以前写了一个这个角色信息查询的前端页面,后端也利用了这个接口,当时还没有做鉴权
然后作死发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
然后隐藏战绩的似乎也查不到了
cookies似乎有时间限制,当发送cookies给机器人群聊里已经绑定完米游社id和原神id,发送签到机器人提示签到失败,请检查Cookies是否失效。
估计是mhy更新了
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
新增了区域探索度和声望等级的返回。
我看AutoMihoyoBBS被禁用了,不知道是咋了
大佬您好!最近在改进的一个bot用到了您的脚本XiaoMiku01/PaimonBot
这个bot会通过uid自动生成一张图片发送到QQ,我看了下源码发现已经留了显示等级头像的位置(如图左右上角)但是被注掉了
看了下米忽悠的那个接口确实没有返回昵称等级什么的信息(太怪了,貌似米游社显示那一页的信息要调好几个不同的接口?)
大佬方便的话能否加入返回账号昵称等级之类的功能呢
如果不方便的话可否提供下对应的接口,我自己解析,谢谢啦
查询时报错提示
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"])这一行
不知道怎么修复希望看到能更新一下或者指点一下怎么修复这个问题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.