[Tutor] whois github package
Juanald Reagan
jon.engle at gmail.com
Sat Apr 25 15:46:26 CEST 2015
Hello! I have a question regarding how to use/implement a package found at
github.
https://github.com/secynic/ipwhois
I am able to run the sample code without any issues but what I don't
understand is how to put all the data that is returned into an indexed
list. I want to be able to pick out some of the returned data through an
index.
For example:
from ipwhois import IPWhois
obj = IPWhois(ipaddy)
results = [obj.lookup()]
print results [0]
This returns ALL the fields not just the "asn_registry" field. I looked for
documentation on github but did not see anything. Any thoughts/comments are
appreciated, thanks!
--
Cheers,
Jon
More information about the Tutor
mailing list