secynic / ipwhois

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

WHOIS block #251

Open Huji opened 4 years ago

Huji commented 4 years ago

I was debugging a code that uses this package and in doing so, I ran a couple hundred IP WHOIS requests. This resulted in RIPE temporarily blocking my IP because I had surpassed RIPE's daily quota. In the python code, that resulted in the code just hanging (I learned about the RIPE block by running a whois command at the terminal and seeing the error message returned by RIPE).

The correct response in a situation like this should be an exception being thrown by the ipwhois package, not just leaving the user hanging.

secynic commented 4 years ago

Can you provide more details on the query tested, traceback, etc. This shouldn't be the case.

Huji commented 4 years ago

I cannot provide a traceback; the code doesn't crash, it just hangs there.

I can create a test code, but that would be at the expense of being blocked by RIPE again so please give me some time on that.