It’s been a while since I posted about bookmarks. Remember del.icio.us? (or Delicious?) How about Ma.gnolia? Scuttle? Oh, Pinboard!
I quit using Pinboard in 2025. Not because it’s bad, in fact, it was quite good! But it seemed like it lost some of the “network effect” that it once had when all my pals used it. I think they also started asking for money, so instead of continuing to use it while not paying (or paying) I moved to a self-hosted solution, which I’ve wanted to do for a long time.
Linkding does pretty much all I need/wait it to do, and it runs on my own server!
Linkding also has an API, and since I’m always messing around with Python. Remember when I made some Mastodon bots?
Well, I had this idea. A new bot that would post one bookmark per day to a Mastodon account. Along the way I abandoned the ides of a new account and decided to just post them to my own account, each night around midnight.
You can see them all with the bookmarks tag.
Back to the Python! I wrote a script that pulls the most recent 100 bookmarks from Linkding and sticks them in a SQLite database. The data from Linkding is a JSON feed, which I’ve never worked with before in Python, but it was fairly simple. I’m not sure if I’ve use SQLite with Python either, but I did that too!
There is a second script that posts to Mastodon. It’s similar to the bot scripts I wrote before, except (again) it works with SQLite. After it posts a bookmark it will set a flag so that we won’t post it again.
My code isn’t perfect, but it works. I didn’t use any AI or LLMs to create it, I read the docs and looked at examples. I probably won’t release it, but who knows?
Anyway, it was a fun project for me, sometimes someone will like or reply to one of my bookmark posts, and I get to see an old(er) bookmark I created. Win-Win all around!
