Python script to exclude Tor exit relays with no contact info set. Adapted from POC by nusenu for use with Tor Daemon on Debian.
Requires the following in /etc/tor/torrc
ControlSocket /var/run/tor/control GroupWritable RelaxDirModeCheck
UseMicrodescriptors 0
Run after service is fully bootstrapped.
See here for orignal script for use with the Tor Browser.