Git Product home page Git Product logo

now-playing-bot-on-youtube-live's Introduction

now-playing-bot-on-youtube-live

Spotify で再生中の曲を定期的に YouTube Live のチャットに書き込む Bot

Demo

テーブル項目確認

Prerequisites

  • YouTube

    • YouTube Live を行えるアカウントを持っていること
  • GCP

    • YouTube Data API v3 が有効になっているプロジェクトが作成済みであること
    • OAuth 同意画面を使用するためのアプリが登録済みであること
    • YouTube Live を行うアカウントのメールアドレスがテストユーザーとして登録済みであること
    • OAuth クライアント ID が作成済みであること
  • Spotify

    • Spotify Premium に登録済みであること
    • Spotify のアプリがインストール済みであること
    • Spotify for Developers でアプリを作成済みであること
    • 上記アプリで Redirect URI が設定済みであること

Environment

% sw_vers
ProductName:	macOS
ProductVersion:	11.2.3
BuildVersion:	20D91

% python --version
Python 3.9.5

% pip --version
pip 21.1.1 from /Users/<USERNAME>/.anyenv/envs/pyenv/versions/3.9.5/lib/python3.9/site-packages/pip (python 3.9)

Setup

$ pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
$ pip install spotipy

or

$ pip install -r requirements.txt
$ export SPOTIPY_USERNAME="<USER_NAME>"
$ export SPOTIPY_CLIENT_ID="<CLIENT_ID>"
$ export SPOTIPY_CLIENT_SECRET="<CLIENT_SECRET>"
$ export SPOTIPY_REDIRECT_URI="<REDIRECT_URL>"

Usage

% python main.py 
YouTube Live URL: https://youtu.be/xxxxxxxxxxx
♪ Love potion / BuZZ #nowplaying
♪ CHOO SEXY / BuZZ #nowplaying
♪ Temporary / w-inds. #nowplaying

now-playing-bot-on-youtube-live's People

Contributors

iam326 avatar

Watchers

 avatar  avatar

now-playing-bot-on-youtube-live's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.