How to get WhoIs info by IP in Python 3?

后端 未结 2 1536
孤街浪徒
孤街浪徒 2020-12-28 19:03

Note: This is not a library recommendation question. It is rather about possible approaches to the problem.

Question: What approaches are possible t

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-28 19:31

    An alternative easy solution that works with Python 3 now:

    First import the following package:

    pip install python-whois
    

    Then execute the code:

    import whois
    w = whois.whois('74.125.225.229')
    

提交回复
热议问题