secynic / ipwhois

Retrieve and parse whois data for IPv4 and IPv6 addresses
https://ipwhois.readthedocs.io/en/latest
BSD 2-Clause "Simplified" License
555 stars 121 forks source link

Question: is there a way to use ipwhois to parse WHOIS records from a file? #248

Closed mpenkov closed 2 weeks ago

mpenkov commented 4 years ago

I've already retrieved some WHOIS records and stashed them in a file. Now I want to parse them (without retrieving them again).

Is there a way to access the WHOIS parser via the ipwhois API?

secynic commented 4 years ago

You can pass the response arg like in the offline tests: https://github.com/secynic/ipwhois/blob/master/ipwhois/tests/test_rdap.py#L26 https://github.com/secynic/ipwhois/blob/master/ipwhois/tests/test_rdap.py#L37

Keeping this open to document it.