-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hello, I'm here again. The process of obtaining whois information is: get domain ->get whois server from iana ->get domain whois information, right? I'm not sure if I'm using the whois server.txt downloaded from iana, but that file may not have been updated for a long time. It would be more accurate to query the whois server from iana each time.
In addition, after multiple uses, I have found several areas for improvement:
-
Date extraction: 'coli688. com. hk', the name of the creation time is' Domain Name Comment Date '. My solution is to generalize the date name, and skip if the date cannot be matched.
-
Date format recognition: It is not always in accordance with iso specifications, such as 13-10-2009, 2022-11-10 00:00:00T00:00:Z. It is recommended to use the dateutil library and extract fixed date formats. "pip python-dateutil"