{"action":"created","issue":{"url":"https://api.github.com/repos/secynic/ipwhois/issues/123","repository_url":"https://api.github.com/repos/secynic/ipwhois","labels_url":"https://api.github.com/repos/secynic/ipwhois/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/secynic/ipwhois/issues/123/comments","events_url":"https://api.github.com/repos/secynic/ipwhois/issues/123/events","html_url":"https://github.com/secynic/ipwhois/issues/123","id":149960820,"number":123,"title":"Dict-list-dict-dict-list What?","user":{"login":"grcninja","id":11823719,"avatar_url":"https://avatars.githubusercontent.com/u/11823719?v=3","gravatar_id":"","url":"https://api.github.com/users/grcninja","html_url":"https://github.com/grcninja","followers_url":"https://api.github.com/users/grcninja/followers","following_url":"https://api.github.com/users/grcninja/following{/other_user}","gists_url":"https://api.github.com/users/grcninja/gists{/gist_id}","starred_url":"https://api.github.com/users/grcninja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grcninja/subscriptions","organizations_url":"https://api.github.com/users/grcninja/orgs","repos_url":"https://api.github.com/users/grcninja/repos","events_url":"https://api.github.com/users/grcninja/events{/privacy}","received_events_url":"https://api.github.com/users/grcninja/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-21T04:12:21Z","updated_at":"2016-04-21T15:30:09Z","closed_at":null,"body":"So I'm struggling here to access the value in \"address.\r\n\r\nHere's the Example I'm following from the documentation\r\n'objects': {\r\n    u'ABUSE5250-ARIN': {\r\n        'contact': {\r\n            'address': [{\r\n                'type': None,\r\n                'value': u'1600 Amphitheatre Parkway\\nMountain View\\nCA\\n\r\n                    94043\\nUNITED STATES'\r\n\r\nHere's what I have written:  \r\n        addr = '185.94.189.144'\r\n        obj = IPWhois(addr, timeout=20)\r\n        results = obj.lookup_rdap(depth=1)\r\n        asn = tab_add(newline_clean(results['asn']))\r\n        asn_country_code = tab_add(newline_clean(results['asn_country_code']))\r\n        network_cidr = tab_add(newline_clean(results['network']['cidr']))\r\n        pp(results['objects'])\r\n        contact_address = tab_add(newline_clean(results['objects']['contact']['address']['value']))\r\n\r\nnow I wrote my contact_address line based on the HTML tables showing the relationship between Objects Dictionary and Contact Dictionary.  Yet when I go back and look at the Example I see a level between them (u'ABUSE5250-ARIN': ) but I do not see a reference to this is the Object Dictionary table.\r\n\r\nCan you please tell me what I am missing here?  It is probably a mistake that I am making between interpreting what you meant and what I'm reading.  Simply fixing this line for me or giving an actual example of how to extract this value that is buried further down than Hades would be sooooooooo much appreciated."},"comment":{"url":"https://api.github.com/repos/secynic/ipwhois/issues/comments/212974824","html_url":"https://github.com/secynic/ipwhois/issues/123#issuecomment-212974824","issue_url":"https://api.github.com/repos/secynic/ipwhois/issues/123","id":212974824,"user":{"login":"secynic","id":5407541,"avatar_url":"https://avatars.githubusercontent.com/u/5407541?v=3","gravatar_id":"","url":"https://api.github.com/users/secynic","html_url":"https://github.com/secynic","followers_url":"https://api.github.com/users/secynic/followers","following_url":"https://api.github.com/users/secynic/following{/other_user}","gists_url":"https://api.github.com/users/secynic/gists{/gist_id}","starred_url":"https://api.github.com/users/secynic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/secynic/subscriptions","organizations_url":"https://api.github.com/users/secynic/orgs","repos_url":"https://api.github.com/users/secynic/repos","events_url":"https://api.github.com/users/secynic/events{/privacy}","received_events_url":"https://api.github.com/users/secynic/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T15:30:09Z","updated_at":"2016-04-21T15:30:09Z","body":"Haha, thank you.\r\n\r\nYes, since objects will be different for each IP, you should always loop that dictionary:\r\n```\r\nfor object_key, object_dict in results['objects'].items():\r\n    # Do stuff\r\n```\r\n\r\n0.13.0 was my first attempt at documenting this beast. I assure you that more examples and easier to understand docs are being worked on. I will leave this open to track those improvements."}}