Posted June 13, 2024 by abraxas86
#javascript #userscript #meta #itch #itch.io #itchio #export #library #tampermonkey #open source #FOSS #free open source #csv #database #export library
This post is about a script I wrote last year, and have been actively maintaining. If this is the first post you've seen about this, welcome! The script is designed for the TamperMonkey browser plugin, which you can get here: https://www.tampermonkey.net/ User scripts can be dangerous, so it's always best to vet the code and not to blindly install anything. I've done my best to comment things that it does, you're also welcome to copy/paste the code into GPT and have it break it all down as well.
Disclaimer: This script is NOT supported or endorsed by Itch, nor is it in any way official. It is a tool that I kludged together on my own and decided to share with the community after seeing others looking for the same functionality.
Itch user IntuitiveThinker asked if there was any way to export item types to the CSV (ie: Digital game, physical game, sound track, etc). I looked into it, but at the time of writing there doesn't seem to be any way to get any of that information from the code.
Tags also don't seem to be accessible, which is kind of a bummer. We can search things like "NES ROM" or "Music" and get results back based on how the items are tagged - but that information is not returned back in the code.
The best way I could think of approaching the question from IntuitiveThinker was to export the Blurb section of the items. It means a bit of manual work on your part, but it also means the ability to export additional data beyond what Itch normally allows.
I've also refactored the code so it's finding the elements much more efficiently than before. I'm not sure if there's any noticeable improvements from a usability standpoint, but from a developer standpoint the code is nicer to look at lol.
Updates are always done to the same gist, so the link never changes, and can be found here: https://gist.github.com/abraxas86/ad72ba46b6cdd86dc63058bba0c629c2
It's been so cool seeing all the comments on my posts for this script recently. I'm glad people have found their way here and that my script is helping the community out. I don't think I could ever code a game or anything like that, so this is the best way I can give back to the community.
Thanks again for the suggestion, IntuitiveThinker! If anybody has suggestions or ideas, please let me know! I'm always willing to try.