WHOISデータを取得および解析できるPythonライブラリ「pythonwhois」のインストールについて解説しています。
「pythonwhois(http://cryto.net/pythonwhois/,https://github.com/joepie91/python-whois)」は、WHOIS検索および解析を行うことができます。
■Python
今回のPythonのバージョンは、「3.8.5」を使用しています。(Windows10)(pythonランチャーでの確認)
■pythonwhoisをインストールする
pythonwhoisをインストールを行いますが、今回はpipを経由してインストールを行うので、まずWindowsのコマンドプロンプトを起動します。
pip install pythonwhois
起動後、上記のコマンドを入力し、Enterキーを押します。
なお、今回は、pythonランチャーを使用しており、Python Version 3.8.5にインストールを行うために、バージョンの切り替えを行います。
py -3.8 -m pip install pythonwhois
切り替えるために、上記のコマンドを入力し、Enterキーを押します。
Defaulting to user installation because normal site-packages is not writeable Collecting pythonwhois Downloading pythonwhois-2.4.3.tar.gz (293 kB) |████████████████████████████████| 293 kB 939 kB/s Preparing metadata (setup.py) ... done Collecting argparse Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB) Building wheels for collected packages: pythonwhois Building wheel for pythonwhois (setup.py) ... done Created wheel for pythonwhois: filename=pythonwhois-2.4.3-py3-none-any.whl size=296656 sha256=ef66f6905d5deee78d5156720944fed6c15f49137c5b8f664292ffe170231003 Stored in directory: c:\users\user_\appdata\local\pip\cache\wheelsa\cc\d2ed17dd7b354b72a0b45e89ee4c550035312521845ccf4762 Successfully built pythonwhois Installing collected packages: argparse, pythonwhois Successfully installed argparse-1.4.0 pythonwhois-2.4.3
Enterキーを押すと、インストールが開始され、上記のように「Successfully installed」と表示されます。これが表示されれば、pythonwhoisが正常にインストールされたことになります。
なお、今回はpythonwhoisのバージョン2.4.3をインストールしました。
コメント