diff --git a/METHODS.md b/METHODS.md index 9bcd50e..c20bb5a 100644 --- a/METHODS.md +++ b/METHODS.md @@ -104,5 +104,6 @@ 99 | binarysearch API | [binarysearch_api](https://github.com/soxoj/socid-extractor/search?q=test_binarysearch_api) | | 100 | pr0gramm API | [pr0gramm_api](https://github.com/soxoj/socid-extractor/search?q=test_pr0gramm_api) | | 101 | Aparat API | [aparat_api](https://github.com/soxoj/socid-extractor/search?q=test_aparat_api) | | +102 | UnstoppableDomains | | | -The table has been updated at 2022-05-02 16:48:12.900875 UTC +The table has been updated at 2023-07-07 19:00:31.026542 UTC diff --git a/socid_extractor/schemes.py b/socid_extractor/schemes.py index 29df699..ee36079 100644 --- a/socid_extractor/schemes.py +++ b/socid_extractor/schemes.py @@ -1799,5 +1799,15 @@ 'bio': lambda x: x['data']['attributes']['description'], 'created_at': lambda x: parse_datetime(x['data']['attributes']['start_date']), } + }, + 'UnstoppableDomains': { + 'flags': ['reservedForUserId', 'DomainProduct'], + 'regex': r'^({[\S\s]+?})$', + 'extract_json': True, + 'fields': { + 'username': lambda x: x['searchQuery'], + 'registered_domains': lambda x: [i["productCode"] for i in x["exact"] if i["status"] == "registered"], + 'protected_domains': lambda x: [i["productCode"] for i in x["exact"] if i["status"] == "protected"], + } } }