I’ve added human.json to my website
Evan Hahn recently blogged about adding support for the “human.json protocol” to his website. I read the specification and thought this seemed like a straightforward protocol to implement. I've fol...

Source: sethmlarson.dev
Evan Hahn recently blogged about adding support for the “human.json protocol” to his website. I read the specification and thought this seemed like a straightforward protocol to implement. I've followed along, and added a /human.json file to my website and rel="human-json" in a <link> element to the <head> section of my HTML. Easy! Vouching was a little more involved because I wanted to auto-discover who uses human.json from everyone that I follow using RSS. Then my vouches can be kept up-to-date as more people implement the protocol. I updated the script to parse the <link> element properly using BeautifulSoup (thanks Evan!). The script below is what I ended up with: import contextlib import pathlib import json import datetime import re import urllib import opml import urllib3 import bs4 http = urllib3.PoolManager( headers={ # Be a good internet netizen: # always set a User-Agent with # your domain and email. "User-Agent": "sethmlarson.dev/1.0 (sethmic