whois/parser.py
changeset 116 fff9472eb920
parent 114 f3df17ee0909
parent 115 2847d9930fa4
child 117 32947b10adce
equal deleted inserted replaced
114:f3df17ee0909 116:fff9472eb920
  1068         """Whois parser for .id domains
  1068         """Whois parser for .id domains
  1069         """
  1069         """
  1070         regex = {
  1070         regex = {
  1071             'domain_id':                   'Domain ID:(.+)',
  1071             'domain_id':                   'Domain ID:(.+)',
  1072             'domain_name':                 'Domain Name:(.+)',
  1072             'domain_name':                 'Domain Name:(.+)',
  1073             'creation_date':               'Domain Create Date:(.+)',
  1073             'creation_date':               'Created On:(.+)',
  1074             'updated_date':                'Domain Last Updated Date:(.+)',
  1074             'expiration_date':             'Expiration Date(.+)',
  1075             'expiration_date':             'Domain Expiration Date:(.+)',
  1075             'registrar':                   'Sponsoring Registrar ID:(.+)',
  1076             'transfer_date':               'Last Transferred Date:(.+)',
  1076             'status':                      'Status:(.+)',  # list of statuses
  1077             'trademark_name':              'Trademark Name:(.+)',
       
  1078             'trademark_country':           'Trademark Country:(.+)',
       
  1079             'trademark_number':            'Trademark Number:(.+)',
       
  1080             'trademark_application_date':  'Date Trademark Applied For:(.+)',
       
  1081             'trademark_registration_date': 'Date Trademark Registered:(.+)',
       
  1082             'registrar':                   'Sponsoring Registrar:(.+)',
       
  1083             'created_by':                  'Created by:(.+)',
       
  1084             'updated_by':                  'Last Updated by Registrar:(.+)',
       
  1085             'status':                      'Domain Status:(.+)',  # list of statuses
       
  1086             'registrant_id':               'Registrant ID:(.+)',
  1077             'registrant_id':               'Registrant ID:(.+)',
  1087             'registrant_name':             'Registrant Name:(.+)',
  1078             'registrant_name':             'Registrant Name:(.+)',
  1088             'registrant_org':              'Registrant Organization:(.+)',
  1079             'registrant_org':              'Registrant Organization:(.+)',
  1089             'registrant_address':          'Registrant Address:(.+)',
  1080             'registrant_address':          'Registrant Street1:(.+)',
  1090             'registrant_address2':         'Registrant Address2:(.+)',
  1081             'registrant_address2':         'Registrant Street2:(.+)',
  1091             'registrant_address3':         'Registrant Address3:(.+)',
  1082             'registrant_address3':         'Registrant Street3:(.+)',
  1092             'registrant_city':             'Registrant City:(.+)',
  1083             'registrant_city':             'Registrant City:(.+)',
  1093             'registrant_state_province':   'Registrant State/Province:(.+)',
  1084             'registrant_country':          'Registrant Country:(.+)',
  1094             'registrant_country':          'Registrant Country/Economy:(.+)',
       
  1095             'registrant_postal_code':      'Registrant Postal Code:(.+)',
  1085             'registrant_postal_code':      'Registrant Postal Code:(.+)',
  1096             'registrant_phone':            'Registrant Phone:(.+)',
  1086             'registrant_phone':            'Registrant Phone:(.+)',
  1097             'registrant_phone_ext':        'Registrant Phone Ext\.:(.+)',
       
  1098             'registrant_fax':              'Registrant FAX:(.+)',
  1087             'registrant_fax':              'Registrant FAX:(.+)',
  1099             'registrant_fax_ext':          'Registrant FAX Ext\.:(.+)',
  1088             'registrant_email':            'Registrant Email:(.+)',
  1100             'registrant_email':            'Registrant E-mail:(.+)',
  1089             'name_servers':                'Name Server:(.+)',  # list of name servers
  1101             'admin_id':                    'Admin ID:(.+)',
       
  1102             'admin_name':                  'Admin Name:(.+)',
       
  1103             'admin_org':                   'Admin Organization:(.+)',
       
  1104             'admin_address':               'Admin Address:(.+)',
       
  1105             'admin_address2':              'Admin Address2:(.+)',
       
  1106             'admin_address3':              'Admin Address3:(.+)',
       
  1107             'admin_city':                  'Admin City:(.+)',
       
  1108             'admin_state_province':        'Admin State/Province:(.+)',
       
  1109             'admin_country':               'Admin Country/Economy:(.+)',
       
  1110             'admin_postal_code':           'Admin Postal Code:(.+)',
       
  1111             'admin_phone':                 'Admin Phone:(.+)',
       
  1112             'admin_phone_ext':             'Admin Phone Ext\.:(.+)',
       
  1113             'admin_fax':                   'Admin FAX:(.+)',
       
  1114             'admin_fax_ext':               'Admin FAX Ext\.:(.+)',
       
  1115             'admin_email':                 'Admin E-mail:(.+)',
       
  1116             'tech_id':                     'Tech ID:(.+)',
       
  1117             'tech_name':                   'Tech Name:(.+)',
       
  1118             'tech_org':                    'Tech Organization:(.+)',
       
  1119             'tech_address':                'Tech Address:(.+)',
       
  1120             'tech_address2':               'Tech Address2:(.+)',
       
  1121             'tech_address3':               'Tech Address3:(.+)',
       
  1122             'tech_city':                   'Tech City:(.+)',
       
  1123             'tech_state_province':         'Tech State/Province:(.+)',
       
  1124             'tech_country':                'Tech Country/Economy:(.+)',
       
  1125             'tech_postal_code':            'Tech Postal Code:(.+)',
       
  1126             'tech_phone':                  'Tech Phone:(.+)',
       
  1127             'tech_phone_ext':              'Tech Phone Ext\.:(.+)',
       
  1128             'tech_fax':                    'Tech FAX:(.+)',
       
  1129             'tech_fax_ext':                'Tech FAX Ext\.:(.+)',
       
  1130             'tech_email':                  'Tech E-mail:(.+)',
       
  1131             'name_servers':                'Nameservers:(.+)',  # list of name servers
       
  1132         }
  1090         }
  1133 
  1091 
  1134         def __init__(self, domain, text):
  1092         def __init__(self, domain, text):
  1135             if 'NOT FOUND' in text:
  1093             if 'NOT FOUND' in text:
  1136                 raise PywhoisError(text)
  1094                 raise PywhoisError(text)