Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Documentation improvements #123

@grcninja

Description

@grcninja

So I'm struggling here to access the value in "address.

Here's the Example I'm following from the documentation
'objects': {
u'ABUSE5250-ARIN': {
'contact': {
'address': [{
'type': None,
'value': u'1600 Amphitheatre Parkway\nMountain View\nCA\n
94043\nUNITED STATES'

Here's what I have written:
addr = '185.94.189.144'
obj = IPWhois(addr, timeout=20)
results = obj.lookup_rdap(depth=1)
asn = tab_add(newline_clean(results['asn']))
asn_country_code = tab_add(newline_clean(results['asn_country_code']))
network_cidr = tab_add(newline_clean(results['network']['cidr']))
pp(results['objects'])
contact_address = tab_add(newline_clean(results['objects']['contact']['address']['value']))

now 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.

Can 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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions