Skip to content

Commit

Permalink
.com.ua: Grab only first creation date for domain
Browse files Browse the repository at this point in the history
Starting from the section with label "Registrar:" the information is
related to different contacts and not with the domain base information.

Currently the parser is returning two creation_date values because it's
grabbing values for registrant and admin contacts and since both have
the same date, they get conflated into only one. The domain itself
should only have one creation date.
  • Loading branch information
lelutin committed Jun 18, 2024
1 parent 817dc80 commit 3354133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion whois/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2442,7 +2442,7 @@ class WhoisUA(WhoisEntry):
"admin_phone": r"(?<=Administrative Contacts:)[\s\W\w]*?phone:(.*)",
"admin_fax": r"(?<=Administrative Contacts:)[\s\W\w]*?fax:(.*)",
"updated_date": r"modified: *(.+)",
"creation_date": r"created: (.+)",
"creation_date": r"created: (.+)[\s\W\w]*?(?=Registrar:)",
"expiration_date": r"expires: (.+)",
"name_servers": r"nserver: *(.+)",
"emails": EMAIL_REGEX, # list of email addresses
Expand Down

0 comments on commit 3354133

Please sign in to comment.