Posted December 14, 2016
adaliabooks: This is an imperfect method, as it only gets (what I believe is) the size listed on the game page for the install rather than the actual size of the installers / patches and doesn't include extras, but it's at least a rough estimate and somewhere to start from.
So, first step is to go here and follow the instructions.
This will import your owned games on to MaGog (also your wishlisted games, but that's not important for this).
Then go here.
Under filters select 'My Tags', 'is any of' and 'owned' for the only row.
Make sure 'File Size' is ticked under Display (you can tick or untick as many other boxes as you want, just make sure that one is set)
And in the Options section change Output Format to JSON.
You could output this as HTML and do it manually (it does include all the sizes for the bonuses etc. too), unfortunately the formatting doesn't lend itself to scraping easily.
Otherwise, once on the JSON output page, run this script from your browser's console. It should give you an output in MB of the size of your library.
var searchResult = JSON.parse(document.body.innerText);
var array = searchResult['magog_search_results'];
var librarySize = 0;
for (var i = 0; i < array.length; i++)
{
librarySize += array[i]["file_size_mb"];
}
console.log(librarySize + " mb");
Wow thanks a lot for the tutorial! But can this really be correct? 1101389 mb is what it said my total library is for around 628 games in the library. So, first step is to go here and follow the instructions.
This will import your owned games on to MaGog (also your wishlisted games, but that's not important for this).
Then go here.
Under filters select 'My Tags', 'is any of' and 'owned' for the only row.
Make sure 'File Size' is ticked under Display (you can tick or untick as many other boxes as you want, just make sure that one is set)
And in the Options section change Output Format to JSON.
You could output this as HTML and do it manually (it does include all the sizes for the bonuses etc. too), unfortunately the formatting doesn't lend itself to scraping easily.
Otherwise, once on the JSON output page, run this script from your browser's console. It should give you an output in MB of the size of your library.
var searchResult = JSON.parse(document.body.innerText);
var array = searchResult['magog_search_results'];
var librarySize = 0;
for (var i = 0; i < array.length; i++)
{
librarySize += array[i]["file_size_mb"];
}
console.log(librarySize + " mb");
edit - Well I guess that is around a bit over 1tb, I guess I could believe that. It looks like I'll be getting a 2tb external to store my games. Thanks so much for the info!
Post edited December 14, 2016 by Gylfe