youtubeの再生回数を調べられるcolaboratoryのプログラム
- Google CloudでYouTubeのAPIを取得します。詳しくはGitHubをご覧ください。
- APIキーを右のAPI_KEYの中に入れます。
- ビデオをYouTubeから取得し、右のvideo_idに入力します。
- Ctrl + Enterまたは▶を押します。
- すると下に出てきます。
- Google Cloudを開きます。
- コンソールを押します。
- 左上のプルダウンメニューを押して、新しいプロジェクトを押します。
- プロジェクト名を設定します。
- プロジェクトを作成します。
- クイックアクセスの、APIとサービスをクリックします。
- +APIとサービスを有効にするをクリックします。
- YouTube Data API v3をクリックします。
- 有効にするを押します。
- 左の認証情報をクリックします。
- 上の認証情報を作成をクリックします。
- APIキーを押します。
- するとAPIキーが作成されます。
- このAPIキーは誰にも教えないでください、
- コピーしてください。
- colabプロジェクトを開いて上の使い方の通りにしてください。
- get the YouTube API from Google Cloud. See GitHub for details. 2. Put your API key in API_KEY on the right. 3. Get a video from YouTube and enter it in the video_id field on the right. 4. Press Ctrl + Enter or ▶. 5.
- then it will appear below.
- open Google Cloud. 2. Press Console. 3. Press the pull-down menu in the upper left corner and press New Project. 4. Set the project name. 5. Create the project. 6. Click on APIs and Services in Quick Access. 7. Click +Enable APIs and Services. 8. Click YouTube Data API v3. 9. Press Enable. 10. Click Credentials on the left. 11. Click Create Credentials above. 12. Press API Key. 13. An API key will then be created. 14. Do not tell **anyone this API key, **.
- make a copy of it. 16.
- open the colab project and follow the instructions above.
Translated with DeepL.com (free version)