Skip to content

Commit

Permalink
Added UnstoppableDomains parser (crypto, wallet, blockchain, bitcoin,…
Browse files Browse the repository at this point in the history
… x, 888, nft, dao, polygon, zil) for Maigret
  • Loading branch information
Dmitriy Danilov committed Jul 7, 2023
1 parent b271ce6 commit 9028545
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion METHODS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 10 additions & 0 deletions socid_extractor/schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
}
}
}

0 comments on commit 9028545

Please sign in to comment.