diff --git a/identity_federations_security_contacts.py b/identity_federations_security_contacts.py index 1e1c83386fd3b5bf310b149c437e5b26a6e9f1c0..f2117d0d114ab6557e04cf2818411377b4aa06ab 100755 --- a/identity_federations_security_contacts.py +++ b/identity_federations_security_contacts.py @@ -1,9 +1,9 @@ #!/usr/bin/env python3 # This script consume the eduGAIN API to retrieve the details of all the -# eduGAIN identity federations and parse it to create a list of -# security email addresses, if available, and the corresponding -# federation name in CSV format. +# eduGAIN identity federations and parse it to create a list of security +# email addresses, if available, and the corresponding federation name in +# CSV format. # This list will be printed to stdout. import requests @@ -12,6 +12,8 @@ feds = requests.get('https://technical.edugain.org/api.php?action=list_feds_full feds_dict = feds.json() +print('#NAME,EMAIL') + for fed in feds_dict: if 'security_contact' in feds_dict[fed]: if 'mail' in feds_dict[fed]['security_contact']: