74 Commits

Author SHA1 Message Date
Sven Slootweg
76ffb7c54d Add support for Interlink Co. Ltd. (.moe and possibly others). Fixes #34. 2014-07-23 01:22:33 +02:00
Sven Slootweg
8bc8463d15 Realtime Register: Make phone optional, allow for multiple address lines, and make parsing rules consistent for all contact types. 2014-07-22 01:06:49 +02:00
Sven Slootweg
95d3ef68f6 Make 'state' an optional field for Realtime Register. 2014-07-22 00:05:32 +02:00
Sven Slootweg
a15f4d5ff5 Merge pull request #31 from manuelRiel/develop
Realtime Register support
2014-07-21 23:56:39 +02:00
Manuel Riel
7f8dbca048 correct optional organization 2014-07-18 09:11:26 +02:00
Manuel Riel
9e35b501c5 add Realtime Register and corresponding tests 2014-07-18 09:08:19 +02:00
Sam Stavinoha
14f7b60684 default kwargs are evaluated at definition time
This stackoverflow question covers the topic pretty well:

    http://stackoverflow.com/q/1132941/1547030

From docs.python.org:

    Default parameter values are evaluated when the function definition is
    executed. This means that the expression is evaluated once, when the
    function is defined, and that the same “pre-computed” value is used for
    each call. This is especially important to understand when a default
    parameter is a mutable object, such as a list or a dictionary: if the
    function modifies the object (e.g. by appending an item to a list), the
    default value is in effect modified. This is generally not what was
    intended. A way around this is to use None as the default, and
    explicitly test for it in the body of the function
2014-07-16 01:52:31 +00:00
Sven Slootweg
9203d83c03 Benchmarking and optimizations 2014-06-28 17:03:43 +02:00
Sven Slootweg
1f419ab7e6 pwhois display bugfix, and massively improved normalization: removal of empty-like values (-, n/a, etc.), mapping of abbreviations for countries, US/CA/AU states and airport codes to full locality names. 2014-06-28 15:09:54 +02:00
Sven Slootweg
c09068f0a2 Unicode fixes for net and pwhois. Fixes #26. 2014-06-27 23:17:51 +02:00
Sven Slootweg
b53bad8272 There's no point in redefining all the regular expressions on every call. 2014-06-27 21:42:58 +02:00
Sven Slootweg
47e9c85a07 Improve normalization for registrar names, and implement .com.tw (TWNIC) parsing. Fixes #22. 2014-06-27 20:28:32 +02:00
Sven Slootweg
0465810b75 Unbreak .dk parsing bug introduced by 1b60bde575. 2014-06-27 18:35:42 +02:00
Sven Slootweg
a4f29a379e Implement HKDNR (.hk) parsing. Fixes #24. 2014-06-27 18:29:01 +02:00
Sven Slootweg
1b60bde575 Implement Akky/.com.mx parsing. Fixes #23. 2014-06-27 16:45:46 +02:00
Sven Slootweg
ae547d0970 Implement .co.th parsing (oh man, what a mess...) 2014-06-27 14:24:05 +02:00
Sven Slootweg
84ab775649 Implement nic.ir parsing, including their horrid address format. Partially fixes #23. 2014-06-27 10:47:39 +02:00
Sven Slootweg
d9474ce1b3 Change nic.pw/PIR regex to support No-IP.com by making the handle optional. Fixes #23 partially. 2014-06-27 10:16:03 +02:00
Sven Slootweg
d86e4ba916 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. 2014-06-27 10:08:57 +02:00
Sven Slootweg
8fe54fa66b Add support for nic.it. Fixes #21. 2014-06-13 20:07:47 +02:00
Sven Slootweg
1c05408847 Implement CNNIC (.cn). Fixes #19. 2014-06-05 21:23:04 +02:00
Sven Slootweg
c5f63363d2 Fix NeuStar regex to make State/Province optional since these are apparently not always present, and explicitly remove variable-width whitespace matching. 2014-06-05 01:01:21 +02:00
Sven Slootweg
5f660bfa96 Remove likely unnecessary variable-width whitespace matching during preprocessing, to avoid an insane permutation count for partially matching regexes, thereby hanging the parser. Fixes #18. 2014-06-05 00:44:03 +02:00
Sven Slootweg
6ecf4efa98 Hardcoded nic.ps root WHOIS server, and added nic.ps parsing, plus misc. fixes. Fixes #15. 2014-05-23 18:12:23 +02:00
Sven Slootweg
5d32a3c883 Fix Nominet parsing for registrants that do not have a state/region listed 2014-05-23 18:02:10 +02:00
Sven Slootweg
43a62c5828 janet (.ac.uk) parsing and hardcoded root server exception, misc. fixes 2014-05-23 17:46:08 +02:00
Sven Slootweg
407cd74b59 Support for LCN.com 2014-04-29 11:06:12 +02:00
Sven Slootweg
7f689d1734 DotAsia support 2014-04-28 02:03:47 +02:00
Sven Slootweg
3e43dcbcef Add support for EuroDNS. Fixes #10. 2014-04-28 01:47:49 +02:00
Sven Slootweg
9b6416af3f Correctly parse EURid data, fixes #9 2014-04-28 01:31:23 +02:00
Sven Slootweg
163ed9d75c Fixes globaltravelgroup.com for #8 2014-04-23 04:30:09 +02:00
Sven Slootweg
35fe637eb9 Nominet regex patch to allow extra fields. Fixes #8... again. 2014-04-15 10:34:55 +02:00
Sven Slootweg
cddc787b69 Hetzner support and version bump 2014-04-09 21:19:04 +02:00
Sven Slootweg
a4f486245b Make second and third address line optional for Nominet WHOIS data with visible address. Add 'registration status' for Nominet. Testcases updated. Fixes #8. 2014-04-09 21:04:41 +02:00
Sven Slootweg
0cd9e01a3f Manually merge #3 due to mistarget 2014-04-07 21:17:12 +02:00
Ziad Sawalha
1e79e33126 Python 3 compatibility
Including converting one of the test data files to
UTF-8. It was Windows encoded which failed with
python 3's file.read encoding.
2014-03-22 11:43:30 -05:00
Christian Koepp
cfe36ed2f6 added support for 1..4 address-fields on tld .de 2014-03-07 13:05:14 +01:00
Christian Koepp
c934d6ba9b Last addition, promised. In rare cases there can be 1..n Address-Fields returned from DeNIC 2014-02-28 20:20:58 +01:00
Christian Koepp
99a6f8bc43 well, now it doesn't matter which letters are in a phone/fax as they are different from domain to domain 2014-02-28 19:59:17 +01:00
Christian Koepp
d945fe2d34 aaaand there is a comment field called remarks...sometimes... 2014-02-28 19:52:49 +01:00
Christian Koepp
4ddee4199c phone + fax can contain spaces (even if they shouldn't according to docu) 2014-02-28 19:39:42 +01:00
Christian Koepp
2f5e700224 full regexpr support for .de domains and updated test-cases for prq.se + nic.ru 2014-02-28 19:29:08 +01:00
Christian Koepp
74ef9a01e4 partial support of regexpr for .de domains 2014-02-28 17:47:23 +01:00
Christian Koepp
73a363eb00 partial support of regexpr for .de domains 2014-02-28 17:10:23 +01:00
Ziad Sawalha
655d1ca374 Make it work with python 3.3 2014-02-25 15:34:04 -06:00
Sven Slootweg
f2ce1d7b8a Support for separated first and last name, NetworkSolutions support, SIDN support, iedr.ie support, .am support, GAL Communication support, Fabulous.com support, added optional 'Facsimile Number' and 'Organization' fields for .US (Neustar) domains, fixed false positive (interpreting 'state' as 'status' in registrant data) 2014-02-08 23:39:52 +01:00
Sven Slootweg
3f7b946871 Fix regular expression corner case that led to long parsing times 2014-02-08 20:38:10 +01:00
Sven Slootweg
0d8edda7e7 Support for .ME 2013-11-24 19:08:12 +01:00
Sven Slootweg
94ae133049 .br support (as far as they give out any info anyway...) 2013-11-24 18:55:55 +01:00
Sven Slootweg
c23eef8aa3 Update for .at to also support domains without fax/phone/email details 2013-11-24 18:52:57 +01:00