A simple set of tools to extract your swgoh.gg mods data to import into http://apps.crouchingrancor.com/Mods/Manager
- Download/copy the powershell script to your machine in a file called 'swgoh-mods.ps1'
- Open powershell and navigate to the directory where the script is
- Run the following command:
. .\swgoh-mods.ps1 "https://swgoh.gg/u/your-user-name/"
- This will create a file called 'mods.json' in the same directory where the script is located.
- Take that file and upload it to http://apps.crouchingrancor.com/Mods/Manager
If you are familiar with nodejs/electron go ahead and clone the repo to your machine and run it with your debugger of choice (I used VS Code). We had originally intended to compile it and share as an EXE but the file size was ridiculously too large.
If you have ruby installed on your computer, you can use the ruby script to download the mod info into a JSON file.
First you need to install the nokogiri, gem which does most of the heavy lifting of the HTML parsing.
$ cd ruby
$ bundle installOnce you do that, you can run the script to download your data, specifying your user name
$ cd ruby
$ bundle exec ruby get_mods.rb sirrobindabrave
Downloaded page 1 for user sirrobindabrave, got 36 mods
Downloaded page 2 for user sirrobindabrave, got 36 mods
Downloaded page 3 for user sirrobindabrave, got 31 mods
Found 103 mods, wrote to sirrobindabrave.jsonThe ruby extractor has been bundled up in a docker image.
$ docker run jonmoter/rancor-mod-extractor:latest YOUR_USER_NAME > output.jsonIf you want the JSON to be more readable:
$ docker run -e PRETTY=1 jonmoter/rancor-mod-extractor:latest YOUR_USER_NAME > output.json