Fix bug in creation date parsing for contacts. Implement .co.jp with recursive handle lookups, fixes#22 partially. Skip WHOIS referals with a protocol specification, fixes#25.
raiseException("The whois() method has been replaced by a different method (with a different API), since pythonwhois 2.0. Either install the older pythonwhois 1.2.3, or change your code to use the new API.")
raiseException("The whois() method has been replaced by a different method (with a different API), since pythonwhois 2.0. Either install the older pythonwhois 1.2.3, or change your code to use the new API.")
"nic-hdl:\s*(?P<handle>.+)\ntype:\s*(?P<type>.+)\ncontact:\s*(?P<name>.+)\n(?:.+\n)*?(?:address:\s*(?P<street1>.+)\naddress:\s*(?P<street2>.+)\naddress:\s*(?P<street3>.+)\naddress:\s*(?P<country>.+)\n)?(?:phone:\s*(?P<phone>.+)\n)?(?:fax-no:\s*(?P<fax>.+)\n)?(?:.+\n)*?(?:e-mail:\s*(?P<email>.+)\n)?(?:.+\n)*?changed:\s*(?P<changedate>[0-9]{2}\/[0-9]{2}\/[0-9]{4}).*\n",# AFNIC madness without country field
"nic-hdl:\s*(?P<handle>.+)\ntype:\s*(?P<type>.+)\ncontact:\s*(?P<name>.+)\n(?:.+\n)*?(?:address:\s*(?P<street1>.+)\n)?(?:address:\s*(?P<street2>.+)\n)?(?:address:\s*(?P<street3>.+)\n)?(?:phone:\s*(?P<phone>.+)\n)?(?:fax-no:\s*(?P<fax>.+)\n)?(?:.+\n)*?(?:e-mail:\s*(?P<email>.+)\n)?(?:.+\n)*?changed:\s*(?P<changedate>[0-9]{2}\/[0-9]{2}\/[0-9]{4}).*\n",# AFNIC madness any country -at all-
"nic-hdl:\s*(?P<handle>.+)\ntype:\s*(?P<type>.+)\ncontact:\s*(?P<name>.+)\n(?:.+\n)*?(?:address:\s*(?P<street1>.+)\n)?(?:address:\s*(?P<street2>.+)\n)?(?:address:\s*(?P<street3>.+)\n)?(?:address:\s*(?P<street4>.+)\n)?country:\s*(?P<country>.+)\n(?:phone:\s*(?P<phone>.+)\n)?(?:fax-no:\s*(?P<fax>.+)\n)?(?:.+\n)*?(?:e-mail:\s*(?P<email>.+)\n)?(?:.+\n)*?changed:\s*(?P<changedate>[0-9]{2}\/[0-9]{2}\/[0-9]{4}).*\n",# AFNIC madness with country field
"nic-hdl:\s*(?P<handle>.+)\ntype:\s*(?P<type>.+)\ncontact:\s*(?P<name>.+)\n(?:.+\n)*?(?:address:\s*(?P<street1>.+)\naddress:\s*(?P<street2>.+)\naddress:\s*(?P<street3>.+)\naddress:\s*(?P<country>.+)\n)?(?:phone:\s*(?P<phone>.+)\n)?(?:fax-no:\s*(?P<fax>.+)\n)?(?:.+\n)*?(?:e-mail:\s*(?P<email>.+)\n)?(?:.+\n)*?changed:\s*(?P<changedate>[0-9]{2}\/[0-9]{2}\/[0-9]{4}).*\n",# AFNIC madness without country field
"nic-hdl:\s*(?P<handle>.+)\ntype:\s*(?P<type>.+)\ncontact:\s*(?P<name>.+)\n(?:.+\n)*?(?:address:\s*(?P<street1>.+)\n)?(?:address:\s*(?P<street2>.+)\n)?(?:address:\s*(?P<street3>.+)\n)?(?:phone:\s*(?P<phone>.+)\n)?(?:fax-no:\s*(?P<fax>.+)\n)?(?:.+\n)*?(?:e-mail:\s*(?P<email>.+)\n)?(?:.+\n)*?changed:\s*(?P<changedate>[0-9]{2}\/[0-9]{2}\/[0-9]{4}).*\n",# AFNIC madness any country -at all-
"nic-hdl:\s*(?P<handle>.+)\ntype:\s*(?P<type>.+)\ncontact:\s*(?P<name>.+)\n(?:.+\n)*?(?:address:\s*(?P<street1>.+)\n)?(?:address:\s*(?P<street2>.+)\n)?(?:address:\s*(?P<street3>.+)\n)?(?:address:\s*(?P<street4>.+)\n)?country:\s*(?P<country>.+)\n(?:phone:\s*(?P<phone>.+)\n)?(?:fax-no:\s*(?P<fax>.+)\n)?(?:.+\n)*?(?:e-mail:\s*(?P<email>.+)\n)?(?:.+\n)*?changed:\s*(?P<changedate>[0-9]{2}\/[0-9]{2}\/[0-9]{4}).*\n",# AFNIC madness with country field
{"status": ["Connected (2015/03/31)"], "updated_date": ["2014-04-01T01:18:23"], "contacts": {"admin": {"handle": "DL152JP"}, "tech": {"handle": "TW124137JP"}, "registrant": {"organization": "Google Japan"}, "billing": null}, "nameservers": ["ns1.google.com", "ns2.google.com", "ns3.google.com", "ns4.google.com"], "creation_date": ["2001-03-22T00:00:00"], "raw": ["[ JPRS database provides information on network administration. Its use is ]\n[ restricted to network administration purposes. For further information, ]\n[ use 'whois -h whois.jprs.jp help'. To suppress Japanese output, add'/e' ]\n[ at the end of command, e.g. 'whois -h whois.jprs.jp xxx/e'. ]\n[ ]\n[ Notice -------------------------------------------------------------------- ]\n[ JPRS will change JPRS WHOIS (web-based and port 43 Whois service) about the ]\n[ following two points on January 18, 2015. ]\n[ ]\n[ 1) Change of the format of response about gTLD domain name ]\n[ 2) Change of the character encoding ]\n[ ]\n[ For further information, please see the following webpage. ]\n[ http://jprs.jp/whatsnew/notice/2014/20140319-whois.html (only in Japanese) ]\n[ --------------------------------------------------------------------------- ]\n\nDomain Information:\na. [Domain Name] GOOGLE.CO.JP\ng. [Organization] Google Japan\nl. [Organization Type] corporation\nm. [Administrative Contact] DL152JP\nn. [Technical Contact] TW124137JP\np. [Name Server] ns1.google.com\np. [Name Server] ns2.google.com\np. [Name Server] ns3.google.com\np. [Name Server] ns4.google.com\ns. [Signing Key] \n[State] Connected (2015/03/31)\n[Registered Date] 2001/03/22\n[Connected Date] 2001/03/22\n[Last Update] 2014/04/01 01:18:23 (JST)\n\n\n"]}
{"status": ["Connected (2015/03/31)"], "updated_date": ["2014-04-01T01:10:41"], "nameservers": ["ns1.sphere.ad.jp", "ns2.sphere.ad.jp"], "contacts": {"admin": {"handle": "TY4708JP"}, "tech": {"handle": "YA6489JP"}, "registrant": {"organization": "NTT PC Communications Incorporated"}, "billing": null}, "raw": ["[ JPRS database provides information on network administration. Its use is ]\n[ restricted to network administration purposes. For further information, ]\n[ use 'whois -h whois.jprs.jp help'. To suppress Japanese output, add'/e' ]\n[ at the end of command, e.g. 'whois -h whois.jprs.jp xxx/e'. ]\n[ ]\n[ Notice -------------------------------------------------------------------- ]\n[ JPRS will change JPRS WHOIS (web-based and port 43 Whois service) about the ]\n[ following two points on January 18, 2015. ]\n[ ]\n[ 1) Change of the format of response about gTLD domain name ]\n[ 2) Change of the character encoding ]\n[ ]\n[ For further information, please see the following webpage. ]\n[ http://jprs.jp/whatsnew/notice/2014/20140319-whois.html (only in Japanese) ]\n[ --------------------------------------------------------------------------- ]\n\nDomain Information:\na. [Domain Name] NTTPC.CO.JP\ng. [Organization] NTT PC Communications Incorporated\nl. [Organization Type] Corporation\nm. [Administrative Contact] TY4708JP\nn. [Technical Contact] YA6489JP\np. [Name Server] ns1.sphere.ad.jp\np. [Name Server] ns2.sphere.ad.jp\ns. [Signing Key] \n[State] Connected (2015/03/31)\n[Registered Date] \n[Connected Date] \n[Last Update] 2014/04/01 01:10:41 (JST)\n\n\n"]}
{"status": ["Connected (2015/03/31)"], "updated_date": ["2014-04-01T01:18:23"], "contacts": {"admin": {"handle": "DL152JP"}, "tech": {"handle": "TW124137JP"}, "registrant": {"organization": "Google Japan"}, "billing": null}, "nameservers": ["ns1.google.com", "ns2.google.com", "ns3.google.com", "ns4.google.com"], "creation_date": ["2001-03-22T00:00:00"], "raw": ["[ JPRS database provides information on network administration. Its use is ]\n[ restricted to network administration purposes. For further information, ]\n[ use 'whois -h whois.jprs.jp help'. To suppress Japanese output, add'/e' ]\n[ at the end of command, e.g. 'whois -h whois.jprs.jp xxx/e'. ]\n[ ]\n[ Notice -------------------------------------------------------------------- ]\n[ JPRS will change JPRS WHOIS (web-based and port 43 Whois service) about the ]\n[ following two points on January 18, 2015. ]\n[ ]\n[ 1) Change of the format of response about gTLD domain name ]\n[ 2) Change of the character encoding ]\n[ ]\n[ For further information, please see the following webpage. ]\n[ http://jprs.jp/whatsnew/notice/2014/20140319-whois.html (only in Japanese) ]\n[ --------------------------------------------------------------------------- ]\n\nDomain Information:\na. [Domain Name] GOOGLE.CO.JP\ng. [Organization] Google Japan\nl. [Organization Type] corporation\nm. [Administrative Contact] DL152JP\nn. [Technical Contact] TW124137JP\np. [Name Server] ns1.google.com\np. [Name Server] ns2.google.com\np. [Name Server] ns3.google.com\np. [Name Server] ns4.google.com\ns. [Signing Key] \n[State] Connected (2015/03/31)\n[Registered Date] 2001/03/22\n[Connected Date] 2001/03/22\n[Last Update] 2014/04/01 01:18:23 (JST)\n\n\n"]}
{"status": ["Connected (2015/03/31)"], "updated_date": ["2014-04-01T01:10:41"], "nameservers": ["ns1.sphere.ad.jp", "ns2.sphere.ad.jp"], "contacts": {"admin": {"handle": "TY4708JP"}, "tech": {"handle": "YA6489JP"}, "registrant": {"organization": "NTT PC Communications Incorporated"}, "billing": null}, "raw": ["[ JPRS database provides information on network administration. Its use is ]\n[ restricted to network administration purposes. For further information, ]\n[ use 'whois -h whois.jprs.jp help'. To suppress Japanese output, add'/e' ]\n[ at the end of command, e.g. 'whois -h whois.jprs.jp xxx/e'. ]\n[ ]\n[ Notice -------------------------------------------------------------------- ]\n[ JPRS will change JPRS WHOIS (web-based and port 43 Whois service) about the ]\n[ following two points on January 18, 2015. ]\n[ ]\n[ 1) Change of the format of response about gTLD domain name ]\n[ 2) Change of the character encoding ]\n[ ]\n[ For further information, please see the following webpage. ]\n[ http://jprs.jp/whatsnew/notice/2014/20140319-whois.html (only in Japanese) ]\n[ --------------------------------------------------------------------------- ]\n\nDomain Information:\na. [Domain Name] NTTPC.CO.JP\ng. [Organization] NTT PC Communications Incorporated\nl. [Organization Type] Corporation\nm. [Administrative Contact] TY4708JP\nn. [Technical Contact] YA6489JP\np. [Name Server] ns1.sphere.ad.jp\np. [Name Server] ns2.sphere.ad.jp\ns. [Signing Key] \n[State] Connected (2015/03/31)\n[Registered Date] \n[Connected Date] \n[Last Update] 2014/04/01 01:10:41 (JST)\n\n\n"]}