logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
+# Well-known URLs for nodeinfo informations
+_well_known_nodeinfo_urls = [
+ "/.well-known/x-nodeinfo2",
+ "/.well-known/nodeinfo",
+]
+
# Request paths
_request_paths = [
"/nodeinfo/2.1.json",
data = dict()
logger.debug("Fetching .well-known info for domain='%s'", domain)
- for path in ["/.well-known/x-nodeinfo2", "/.well-known/nodeinfo"]:
+ for path in _well_known_nodeinfo_urls:
logger.debug("Fetching path='%s' from domain='%s' ...", path, domain)
data = network.get_json_api(
domain,