Rickard Lindberg | Blog | Projects
All Posts | 2026 | 2026-02 | 2026-02-05 | All Bibs | All Tags | #indieweb

Written by Rickard Lindberg . (also on IndieNews)

Here is how I test microformats markup on my website.

First I install mf2py:

sudo dnf install python3-mf2py

Then I define this one-liner Bash function:

mf2test() { python -c 'import sys; import mf2py; import json; print(json.dumps(mf2py.parse(url=sys.argv[1])))' $1 | jq; }

And then I can test a website like this:

$ mf2test https://blog.rickardlindberg.me/2026/02/05/075110.html
{
  "items": [
    {
      "type": [
        "h-entry"
...

What is Rickard working on and thinking about right now?

Every month I write a newsletter about just that. You will get updates about my current projects and thoughts about programming, and also get a chance to hit reply and interact with me. Subscribe to it below.

Powered by Buttondown (My Newsletter)

I'm Rickard Lindberg from Sweden. This is my home on the web. I like programming. I like both the craft of it and also to write software that solves problems. I also like running.

Me elsewhere: GitHub, Mastodon.