YouTubeDataAPI_Python

Pythonを使ってYouTube Data APIを叩く

[
    {
        "id": "OD7wsfblIAU",
        "image": "https://i.ytimg.com/vi/OD7wsfblIAU/hqdefault.jpg",
        "likes": 21506,
        "publishedAt": "2022-03-10T10:30:14Z",
        "title": "LINEのボイス付きスタンプ100連発したらYouTuberは怒るか検証w【3.11チャリティー・売上寄付】",
        "views": 757197
    },
    {
        "id": "RJKo3bDCBGo",
        "image": "https://i.ytimg.com/vi/RJKo3bDCBGo/sddefault.jpg",
        "likes": 22632,
        "publishedAt": "2022-03-08T11:15:14Z",
        "title": "【No.1決定戦】チョコフォンデュタワーに色んなアイス突っ込んでどれが1番合うか試してみたwww",
        "views": 1001088
    },
    {
        "id": "5FalwD0yHb0",
        "image": "https://i.ytimg.com/vi/5FalwD0yHb0/hqdefault.jpg",
        "likes": 23017,
        "publishedAt": "2022-03-08T11:14:36Z",
        "title": "息継ぎ無しでビートボックス世界最長記録目指した結果… #Shorts",
        "views": 546196
    },

Requirement

  • Python 3.x
  • pip install -r requirements.txt

Usage

  • Set YouTube Data API KEY in .env
  • python youtube_get_videos.py [channel_id]