This now works! the only thing is that the "genre" and "synopsis" columns are left blank. I guess there's no way to retrieve them from the "my purchases" page?
I don't get how itch manages the library: I have a have bought a 900+ items bundle some time ago and I could not claim them all at once. I had to use a third party script to automate the process. Now, the strange thing is that some of the items appear in a so called "collection" in my profile, while others don't.
If only there was a way to add all of the items in a single collection i could use your script to parse the entire library, including the synopsis.