DomainTools / python_api

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

ID-1389 Python Wrapper: Filter on counts #105

Closed wesleya closed 2 years ago

wesleya commented 2 years ago

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

example:

response = dt_api.iris_investigate('domaintools.com').response()
pivots = utils.get_pivots(response.get('results'), "")
# [['IP ADDRESS', ('199.30.228.112', 4)], ['IP ASN', (17318, 111)], ['IP ISP', ('DomainTools LLC', 222)]]
ChuckWoodraska commented 2 years ago

I don't know if you have any thoughts on what the output should be. This works but I'm not sure if we would want something more structured in the future. Specifically accessing the value and count probably looks something like value = var[1][0] and count = var[1][1] right now.