Re: [Tutor] whois github package

2015-04-25 Thread Alan Gauld
On 25/04/15 14:46, Juanald Reagan wrote: Hello! I have a question regarding how to use/implement a package found at github. https://github.com/secynic/ipwhois We are not experts on this here since this list s for people learning the core Python lamguage and its standard library. Howe er I se

Re: [Tutor] whois github package

2015-04-25 Thread Steven D'Aprano
On Sat, Apr 25, 2015 at 09:46:26AM -0400, Juanald Reagan wrote: > 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

[Tutor] whois github package

2015-04-25 Thread Juanald Reagan
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 som