Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Export collections to CSV

I bought a MASSIVE bundle of games a few years ago and finally got around to sorting them out into a few different collections.  My plan was to export the game list to CSV so that I could use a random number generator or similar to pick which game to play next.  But there was a problem...

Itch doesn't offer a way to export collections to csv.

I was honestly a bit surprised to see that this feature wasn't added in yet.  There is some functionality for other data to be exported, so why not this?  Well - I've got some experience with Javascript and Userscripts, as I had recently done a massive overhaul via userscript to a site at my work to make it much more functional.  I decided I could implement the functionality I needed here, too.

My script will require you to install the Tampermonkey browser plugin to work, and can be found here: https://gist.github.com/abraxas86/ad72ba46b6cdd86dc63058bba0c629c2

The code does the following:

- Adds a grey button to the bottom of the site, just above the footer
- Adds a text box beside that so that you can change the name of the file if you want.  The default name should be the name of the collection.
- Changes the text of the game names to red.  I did this for two reasons: 1) it looks cool, 2) It's a subtle indication that the script is loaded.

The script will also remove some elements when the button is clicked - namely, the prices of items and the "gif" badge that appears on some thumbnails.  It had to do this in order to clean the information that it was about to grab.  Otherwise, these were ending up in the output.  You can just refresh the page to get them back again if you need them.

 

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.

(+1)

Hey, thank you so much for this! I'm creating a complete collection of my games, and this was a lifesaver. It worked perfectly for me. I installed Tampermonkey, added your script, and spent a couple of minutes scrolling to the bottom of my library—there was your handy little button!

yay!  I'm so glad people found this and it's been useful.  I'm honestly surprised that it isn't something that's just built into the site.  I was also kinda surprised that nobody else had made it yet lol.  But yeah, thanks for checking it out and I'm glad it saved you time and made your project even just a bit easier to tackle!

(+1)

Thanks a LOT ! Saved me a lot of time.

(+1)

Glad to have helped!  It still blows my mind that this isn't something natively baked into Itch.  Was it able to get everything you needed?

Yes, thank you! To be fair I don't think it's a common usage ^^

(+1)

haha, probably not - but there were a few people asking if the feature existed when I tried to google it.

hi i cant seem to get this to work i added the script to Tampermonkey but nothing seems to happen any ideas?

(1 edit)

I have it set up specifically for collections - make sure you go to your collection and then scroll all the way down to the bottom.  Because the collection content loads dynamically, the script needs you to reach the very end of your collection to make sure it's able to grab all the games.

You should see a button like this at the very bottom:


Did you ever get the script working?  I did a huge update to it last week.  Maybe the updated script will work better for you?