This script helps users convert the CSV data exported through GOG Galaxy Export Script to a nice, searchable, customizable HTML5 format.
- Customizable HTML5, game partials, CSS and JS
- Vanilla JS implementation
- Live cover images resizing and spacing
- Interactive offline search
python csv_parser.py --image-list
wget -nc -P images -i ./imagelist.txt
python csv_parser.py --html5
-i Filenameor--input Filenameto specify the full path of the CSV file (defaults to./gameDB.csv)-l Filenameor--list Filenameto specify the full path of the output cover list URLs file (defaults to./imagelist.txt)-o Filenameor--output Filenameto specify the full path of the output HTML5 file (defaults to./index.html)
--image-listcreates a list containing the best matching URL for each game in the library--html5creates the HTML5 game library--titlecustom title for the html page--embedembeds .css and .js files instead of linking them
Note: while exporting, a few other actions are automatically performed:
- delete unused images that have been replaced in the catalog
--html5: rename image files to remove the HTML5 attributes if necessary (i.e. renamesimage.webp?namespace=gamesdbintoimage.webp)
Each of the files in the template can be overridden by creating a new file ending in .custom.<extension>, such as style.custom.css or game.custom.html. This allows minimal and personalised changes only where needed.
You can open the controls by pressing CTRL+Space. From there you can search games, resize the game covers width, and the spacing between each other.
- Python 3
- csv
- natsort
- unidecode
- A CSV exported through GOG Galaxy Export Script
wget, if you want the images in an easy way
- Works better when the CSV is extracted with the
-acommand - The search results aren't weighted yet, and only consider titles
