Bookmarks Integration
I use Raindrop.io to manage my bookmarks. I thought it would be fun to have a streamlined way to share select bookmarks in the blog:was; somewhat similar to the way that Brett Terpstra does his periodic Web Excursions posts.
I did a little background research on the Raindrop IO REST API with Gemini, and it seemed to have all the filters and export capability that I was looking for.
So, I turned Claude loose on the task:
design a workflow to gather bookmarks created in the last week from raindrop.io using their rest api. gather the link, tags, note, title fields from the raindrop entity in the all links collection and then generate a markdown file that lists the bookmarks found. I already have a test bearer token you can use for testing.
Claude asked a few reasonable questions about where to stow the output and how to pass in the API token and then got to work. For the first round, I told them to just dump the output into a file and take the API token from an environment variable. Output was the right data with reasonable formatting.
From there, I had Claude output to a new draft blog post rather than a standalone file. One more round of formatting tweaks and things were pretty much good to go. Nice!
Dev notes
First Iteration
- I’m just gonna run the process periodically manually. I wanna keep some editorial control on what gets shared.
- I plan to add per link commentary by hand in the generated markdown.
Later
- I think a can use a tag
blogin Raindrop and adjust the fetch process to look for only posts with that tag instead of grabbing all bookmarks. - Raindrop has a note field, but I don’t really use it today. I should probably put my notes there and just suck them down in the download script for more automation.
- If I do the 2 bullets above, I can run the bookmark download tool on a schedule. Not sure I bookmark enough stuff to warrant running that often though. Once a month is likely plenty.