-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from sam-kleiner/main
Add entity address parser
- Loading branch information
Showing
3 changed files
with
205 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,16 @@ def test_autnum_response_parser(self): | |
'type': 'entity', | ||
'whois_server': 'whois.arin.net', | ||
'name': 'Cloudflare, Inc.', | ||
'rir': 'arin' | ||
'rir': 'arin', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': '', | ||
} | ||
} | ||
] | ||
) | ||
|
@@ -72,7 +81,16 @@ def test_autnum_response_parser(self): | |
'name': 'Abuse', | ||
'email': '[email protected]', | ||
'tel': '+1-650-319-8930', | ||
'rir': 'arin' | ||
'rir': 'arin', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': '', | ||
} | ||
} | ||
] | ||
) | ||
|
@@ -86,7 +104,16 @@ def test_autnum_response_parser(self): | |
'name': 'NOC', | ||
'email': '[email protected]', | ||
'tel': '+1-650-319-8930', | ||
'rir': 'arin' | ||
'rir': 'arin', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': '', | ||
} | ||
} | ||
] | ||
) | ||
|
@@ -100,7 +127,16 @@ def test_autnum_response_parser(self): | |
'name': 'Admin', | ||
'email': '[email protected]', | ||
'tel': '+1-650-319-8930', | ||
'rir': 'arin' | ||
'rir': 'arin', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': '', | ||
} | ||
} | ||
] | ||
) | ||
|
@@ -176,7 +212,16 @@ def test_domain_response_parser(self): | |
'url': 'https://rdap.norid.no/entity/reg42-NORID', | ||
'type': 'entity', | ||
'name': 'Domeneshop AS', | ||
'email': '[email protected]' | ||
'email': '[email protected]', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': 'Christian Krohgs gate 16', | ||
'locality': 'Oslo', | ||
'region': '', | ||
'postal_code': 'NO-0186', | ||
'country': 'NORWAY', | ||
} | ||
} | ||
] | ||
) | ||
|
@@ -187,7 +232,16 @@ def test_domain_response_parser(self): | |
'url': 'https://rdap.norid.no/entity/DH21326R-NORID', | ||
'type': 'entity', | ||
'name': 'Domeneshop Hostmaster', | ||
'email': '[email protected]' | ||
'email': '[email protected]', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': 'NORWAY', | ||
} | ||
} | ||
] | ||
) | ||
|
@@ -210,7 +264,7 @@ def test_domain_response_parser(self): | |
{ | ||
'handle': '1647', | ||
'type': 'entity', | ||
'name': 'Hosting Concepts B.V. d/b/a Registrar.eu', | ||
'name': 'Hosting Concepts B.V. d/b/a Registrar.eu' | ||
} | ||
] | ||
) | ||
|
@@ -255,7 +309,16 @@ def test_ip_response_parser(self): | |
'name': 'APNIC RESEARCH', | ||
'email': '[email protected]', | ||
'tel': '+61-7-3858-3199', | ||
'rir': 'apnic' | ||
'rir': 'apnic', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': '', | ||
} | ||
} | ||
] | ||
) | ||
|
@@ -315,7 +378,16 @@ def test_ip_response_parser(self): | |
'name': 'APNIC RESEARCH', | ||
'email': '[email protected]', | ||
'tel': '+61-7-3858-3199', | ||
'rir': 'apnic' | ||
'rir': 'apnic', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': '', | ||
} | ||
} | ||
] | ||
) | ||
|
@@ -348,7 +420,16 @@ def test_ip_response_parser(self): | |
'rir': 'arin', | ||
'type': 'entity', | ||
'url': 'https://rdap.arin.net/registry/entity/GOGL', | ||
'whois_server': 'whois.arin.net' | ||
'whois_server': 'whois.arin.net', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': '', | ||
} | ||
} | ||
] | ||
) | ||
|
@@ -362,7 +443,16 @@ def test_ip_response_parser(self): | |
'type': 'entity', | ||
'url': 'https://rdap.arin.net/registry/entity/ZG39-ARIN', | ||
'tel': '+1-650-253-0000', | ||
'whois_server': 'whois.arin.net' | ||
'whois_server': 'whois.arin.net', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': '', | ||
} | ||
} | ||
] | ||
) | ||
|
@@ -376,7 +466,16 @@ def test_ip_response_parser(self): | |
'type': 'entity', | ||
'url': 'https://rdap.arin.net/registry/entity/ZG39-ARIN', | ||
'tel': '+1-650-253-0000', | ||
'whois_server': 'whois.arin.net' | ||
'whois_server': 'whois.arin.net', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': '', | ||
} | ||
} | ||
] | ||
) | ||
|
@@ -390,7 +489,16 @@ def test_ip_response_parser(self): | |
'name': 'Abuse', | ||
'email': '[email protected]', | ||
'tel': '+1-650-253-0000', | ||
'rir': 'arin' | ||
'rir': 'arin', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': '', | ||
} | ||
}, | ||
{ | ||
'handle': 'ZG39-ARIN', | ||
|
@@ -400,7 +508,16 @@ def test_ip_response_parser(self): | |
'name': 'Google LLC', | ||
'email': '[email protected]', | ||
'tel': '+1-650-253-0000', | ||
'rir': 'arin' | ||
'rir': 'arin', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': '', | ||
} | ||
} | ||
] | ||
) | ||
|
@@ -432,7 +549,16 @@ def test_ip_response_parser(self): | |
'rir': 'arin', | ||
'type': 'entity', | ||
'url': 'https://rdap.arin.net/registry/entity/GOGL', | ||
'whois_server': 'whois.arin.net' | ||
'whois_server': 'whois.arin.net', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': '', | ||
} | ||
} | ||
] | ||
) | ||
|
@@ -464,7 +590,16 @@ def test_entity_response_parser(self): | |
'type': 'entity', | ||
'url': 'https://rdap.arin.net/registry/entity/GTS7-ARIN', | ||
'tel': '+1-519-254-5115', | ||
'whois_server': 'whois.arin.net' | ||
'whois_server': 'whois.arin.net', | ||
'address': { | ||
'po_box': '', | ||
'ext_address': '', | ||
'street_address': '', | ||
'locality': '', | ||
'region': '', | ||
'postal_code': '', | ||
'country': '', | ||
} | ||
} | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters