Cross-pollinating Amazon and Spotify

I have an Amazon wishlist full of books. I pay for Spotify which includes access to audiobooks. Amazon doesn't make it easy for me to see if Spotify has those audiobooks, because Amazon wants my money instead. I don't want to manually search for every book on my list because there's 98 books on there!
Let's make Claude do it.

First, I exported my wishlist into a PDF. Then, I found Spotify's Web API documentation which is very well written. Getting a token was also dead simple.
Keys in hand, I prompted Claude:
Let's write a script. Make it python. I want it to perform the following: 1. Attached is my books wish list from Amazon 2. For each book on the list, search Spotify for an audiobook version. 3. If the audiobook exists, add it to my Spotify playlist "Matt's Audiobooks" which has playlist ID "[redacted]" 4. If not, move on to the next book. 5. Print a report of books that are and are not available. The script should use the Spotify API with my already-created app with the Bearer token: [redacted, but also expired so whatever] References Spotify Web API for searching for audiobooks (also attached): https://developer.spotify.com/documentation/web-api/reference/search Spotify API for adding to playlist (also attached): https://developer.spotify.com/documentation/web-api/reference/add-tracks-to-playlist
Turns out, it couldn't modify my playlists with just standard credentials, and I didn't want to implement a whole Authorization Code flow, so I told it to output an HTML file instead. After running the script, it output some pretty impressive results...

But they're not perfect. You can see even in the screenshot that the Calvin and Hobbes book is completely different from the Original search ("Let's Go Exploring..." vs "The Complete Calvin and Hobbes"). It only whiffed like this on a handful of titles.
I also noticed a few of the audiobooks were along the lines, "A Summary of [book]" and narrated by AI slop.
On the whole, this is a handy doc to keep around when I want to read a book and haven't gotten around to purchasing it yet!