A simple script to compare badges for two Telehack users. Uses the /u/username.json API rather than the older HTML user page.
Python 3 with the requests module. If you're on a system-managed Python (e.g. Homebrew on macOS), use a virtual environment:
python3 -m venv th_badge_cmp_venv
th_badge_cmp_venv/bin/pip install requests
For a plain system Python where pip install works globally:
pip3 install requests
th_badge_cmp_venv/bin/python th_badge_cmp.py <user1> <user2>
Or, if requests is installed globally:
./th_badge_cmp.py <user1> <user2>
Pull requests are welcome.