DomainTools / python_api

DomainTools Official Python API
MIT License
82 stars 32 forks source link

ID-1388 Python Wrapper: Find averages #101

Closed wesleya closed 2 years ago

wesleya commented 2 years ago

Closes https://domaintools.atlassian.net/browse/ID-1388

Examples:

# investigate average risk
result = dt_api.iris_investigate(mailserver_ip='107.152.46.105').response()
average = utils.get_average_risk_score(result.get('results'))

# detect average risk
result = dt_api.iris_detect_new_domains(include_domain_data=True).response()
average = utils.get_average_risk_score(result.get('watchlist_domains'))

# investigate average age
result = dt_api.iris_investigate(mailserver_ip='107.152.46.105').response()
average = utils.get_average_age(result.get('results'))

# investigate average age
result = dt_api.iris_detect_new_domains(include_domain_data=True).response()
average = utils.get_average_age(result.get('watchlist_domains'))