HearthSim / Hearthstone-Deck-Tracker

A deck tracker and deck manager for Hearthstone on Windows
https://hsreplay.net/downloads/
4.7k stars 1.11k forks source link

Export Replay #636

Closed adithep closed 9 years ago

adithep commented 9 years ago

I think it would be really nice if we can export replay data to any text format for example xml or json.

azeier commented 9 years ago

The .hdtreplay files just zips. Open it and you'll find a output_log.txt which contains the original log data, as well as a replay.json which is a 2d array of entities.

adithep commented 9 years ago

Thanks!

On Wed, Feb 4, 2015 at 5:20 PM, Epix notifications@github.com wrote:

The .hdtreplay files just zips. Open it and you'll find a output_log.txt which contains the original log data, as well as a replay.json with is a 2d array of entities https://github.com/Epix37/Hearthstone-Deck-Tracker/blob/master/Hearthstone%20Deck%20Tracker/Hearthstone/Entities/Entity.cs .

— Reply to this email directly or view it on GitHub https://github.com/Epix37/Hearthstone-Deck-Tracker/issues/636#issuecomment-72831169 .

yurifw commented 6 years ago

Sorry to commento on such an old issue, but I just opened the hdtreplay files and they just contain the output_log.txt. Is there a way I can get this in JSON format?

azeier commented 6 years ago

The json format no longer exists, sorry.

yurifw commented 6 years ago

Is there any other format I can get the info easier then the output_log.txt? All the information I found is outdated. If I click to see the replay I can download an XML, is there a way to get that XML without a webscraper?

jleclanche commented 6 years ago

Take the ID of the replay. For example, for https://hsreplay.net/replay/u3FYcWm2vXr9ZNtZsyavC6, that is 4EDxpNihFAbY3YFMo7aGgC.

Then go to https://hsreplay.net/api/v1/games/<shortid>/. Example: https://hsreplay.net/api/v1/games/u3FYcWm2vXr9ZNtZsyavC6/

The URL replay_xml is what you want.