596 |
596 |
597 class WhoisFi(WhoisEntry): |
597 class WhoisFi(WhoisEntry): |
598 """Whois parser for .fi domains |
598 """Whois parser for .fi domains |
599 """ |
599 """ |
600 regex = { |
600 regex = { |
601 'domain_name': 'domain: *([\S]+)', |
601 'domain_name': 'domain\.*: *([\S]+)', |
602 'name': 'descr: *([\S\ ]+)', |
602 'name': 'descr\.*: *([\S\ ]+)', |
603 'address': 'address: *([\S\ ]+)', |
603 'address': 'address\.*: *([\S\ ]+)', |
604 'phone': 'phone: *([\S\ ]+)', |
604 'phone': 'phone\.*: *([\S\ ]+)', |
605 'status': 'status: *([\S]+)', # list of statuses |
605 'status': 'status\.*: *([\S]+)', # list of statuses |
606 'creation_date': 'created: *([\S]+)', |
606 'creation_date': 'created\.*: *([\S]+)', |
607 'updated_date': 'modified: *([\S]+)', |
607 'updated_date': 'modified\.*: *([\S]+)', |
608 'expiration_date': 'expires: *([\S]+)', |
608 'expiration_date': 'expires\.*: *([\S]+)', |
609 'name_servers': 'nserver: *([\S]+) \[\S+\]', # list of name servers |
609 'name_servers': 'nserver\.*: *([\S]+) \[\S+\]', # list of name servers |
610 'name_server_statuses': 'nserver: *([\S]+) \[\S+\]', # list of name servers and statuses |
610 'name_server_statuses': 'nserver\.*: *([\S]+) \[\S+\]', # list of name servers and statuses |
611 'dnssec': 'dnssec: *([\S]+)', |
611 'dnssec': 'dnssec\.*: *([\S]+)', |
|
612 |
612 } |
613 } |
613 |
614 |
614 def __init__(self, domain, text): |
615 def __init__(self, domain, text): |
615 if 'Domain not ' in text: |
616 if 'Domain not ' in text: |
616 raise PywhoisError(text) |
617 raise PywhoisError(text) |