Google Search Console - Google Indexing API - インストール


 クラウディア


1. 概要
2. インストール

1. 概要

 使用する、「API」をインストールします。

2. インストール

 ここでは、「python」を使用する予定なので。  「python」の「API」をインストールします。  実行する予定のユーザ権限で。

pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib
 どうも、「rustc」でビルドしているようで、やたら時間がかかります。  わらわらとメッセージが出力されますが、インフォメーション的なものは割愛して、重要な部分を掲載。

Installing collected packages: uritemplate, pyparsing, pycparser, pyasn1, protobuf, oauthlib, requests-oauthlib, pyasn1-modules, proto-plus, httplib2, googleapis-common-protos, cffi, cryptography, google-auth, google-auth-oauthlib, google-auth-httplib2, google-api-core, google-api-python-client
  WARNING: The script google-oauthlib-tool is installed in '/home/user/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed cffi-2.0.0 cryptography-46.0.5 google-api-core-2.30.0 google-api-python-client-2.193.0 google-auth-2.49.1 google-auth-httplib2-0.3.0 google-auth-oauthlib-1.3.0 googleapis-common-protos-1.73.0 httplib2-0.31.2 oauthlib-3.3.1 proto-plus-1.27.1 protobuf-6.33.6 pyasn1-0.6.3 pyasn1-modules-0.4.2 pycparser-3.0 pyparsing-3.3.2 requests-oauthlib-2.0.0 uritemplate-4.2.0
 インストールしたものは。

~/.local/bin/google-oauthlib-tool
 みたいなのですが、中身は。

#!/usr/local/bin/python3.12
# -*- coding: utf-8 -*-
import re
import sys
from google_auth_oauthlib.tool.__main__ import main
if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
    sys.exit(main())
 ん?  本当に使えるんじゃろか?