Check if Tor Onion Service is alive (python stem get_hidden_service_descriptor) - Michael Altfield's Tech Blog
Port-agnostic solution to check if Tor Onion Services are alive or dead by querying the Hidden Service Directory with python and stem
Michael Altfield's Tech Blog