You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rdap_domain method uses whodap's to_whois_dict method behind the scenes. This library returns slightly different keys for the whois dictionary that asyncwhois does not.
For example:
import asyncwhois
w = asyncwhois.whois_domain("google.com")
r = asyncwhois.rdap_domain("google.com")
w_keys = w.parser_output.keys()
r_keys = r.parser_output.keys()
# see mismatches
print([k for k in r_keys if k not in w_keys])
print([k for k in w_keys if k not in r_keys])
The task is to write a static function in the DomainLookup class:
The
rdap_domain
method uses whodap'sto_whois_dict
method behind the scenes. This library returns slightly different keys for the whois dictionary thatasyncwhois
does not.For example:
The task is to write a static function in the
DomainLookup
class:The above function should be used in the
rdap_domain
andaio_rdap_domain
functions ofDomainLookup
The text was updated successfully, but these errors were encountered: