-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can i decode information from RequestFullMatchInfo? #42
Comments
guys, please. Cant do anything without your help T_T |
from google.protobuf.json_format import MessageToDict
match_info = MessageToDict(response[0])
for match in match_info['matches']:
for match_round in match['roundstatsall']:
print(match_round)
demo_url = game_info['matches'][0]['roundstatsall'][-1]['map'] then they download set demo an use their own parser, another public or the Valve made one to get all the information they want |
Thx for your reply. Now i understand. But there is a new question. I know nothing about C, C# or C++. Is there any working python library for getting stats like csgostats get? |
Hello. Need help, please guys :) There are 2 questions that i dont understand.
I use
response = cs.wait_event('full_match_info', timeout=30, raises=False)
for get the game data from user last match. But whats the format i getting on response?
I tried to use
str(response[0])
and next decode byjson.loads()
, but i get an json decode error.How can i decode this data to dict or something like that??? (wrote down)
How the sites like csgostats.gg and other get the all info about match?
like flashes, flash assists, jumpshots, the accuracy with AK-47, grenade damage etc. I can get only kill, assists, headshots and score (very little info) via
cs.request_full_match_info()
. Is it possible to get more data via that python module?The response data i want to decode or something like that:
etc
The text was updated successfully, but these errors were encountered: