Feedback Data Scraper [Tool]

Idolon

they/them
aa
Feb 7, 2008
2,108
6,119
Below is a simple JavaScript script you can execute on the feedback webpage to turn all round data on a map into a .csv. file. This probably isn't useful for most people, but it might help sort through data if you've got a map with hundreds of playtests and you want to sort the data for patterns.

To use this script, open your browser's console (Ctrl + Shift + J in most browsers), paste the script, and press enter. Then copy paste the output string into a text document. You can then open this text document in your spreadsheet program of choice. You'll also want to have the round info window open in the webpage.

upload_2020-10-18_9-49-22.png


The script:

Code:
var rounds = document.getElementsByClassName("rounddata");
var final = "Result, Length, Win Reason, Rounds Left, Player Count, Round Name\n";
for (i = 0; i < rounds.length; i++) {
    var roundinfo = rounds[i].getElementsByClassName("roundinfo");
    for (j = 0; j < roundinfo.length; j++) {
        var info = roundinfo[j].innerHTML;
        if (j == 0) { final = final + info.substring(1, info.indexOf('&nbsp;')) + ", "; }
        else { final = final + info.substring(info.indexOf('</b>') + 4) + ", "; }
    }
    final = final + "\n";
}
final;