• Members 5 posts
    Jan. 26, 2019, 12:27 a.m.

    Hy, I'm using the python scripts Jylpah wrote to upload replays which gets a json file with the data shown on the site back and then another script to analyse those files which also uses the WG API, but...
    I've uploaded 100 replays and then managed to delete the replays and the son files and cannot recover them, doh!
    Is there a way to request the json file for a replay that has already been uploaded?

  • Jan. 26, 2019, 10:13 a.m.

    Yes, you can use replays/info API if you know replay's ID (which is actually a MD5 hash of the file), but unfortunately it returns the data in the different format, ex:
    Or you can use upload API and again provide the MD5 hash if you know it, ex:
    The latter is preferred as it uses less DB reads.

  • Members 5 posts
    Jan. 27, 2019, 11:23 a.m.

    Thanks I'll have a look Jylpah's scripts, as that's what I use and changing it to use the latter method when already uploaded...

  • Members 5 posts
    Jan. 27, 2019, 10:16 p.m.

    Happy days, had a look at jylpah's scripts and they 1st check if the replay is already loaded using your latter method, so worked a treat, thanks again for the help...