Giter Site home page Giter Site logo

bacherik / youtubespotifybridge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kilmer56/youtubespotifybridge

0.0 0.0 0.0 20 KB

Simple script that converts Youtube videos of a specific playlist into Spotify music playlist

Python 98.76% Dockerfile 1.24%

youtubespotifybridge's Introduction

Welcome to YoutubeSpotifyBridge ๐Ÿ‘‹

Version License: MIT

Simple script that converts Youtube videos inside a specific playlist into Spotify music playlist

Table of Content

Prerequisites

  • python >=3.6.9
  • pip >=3.0.0

Configuration

Youtube

Before setting up your Youtube Secrets, the playlist that you want to fetch must be in public and accessible

  1. Create a developer key using this link
  2. Create a youtube_secrets.py file inside the youtube folder
  3. Set the following vars :
YOUTUBE_DEVELOPER_KEY = "YOUR DEVELOPER KEY"
YOUTUBE_API_SERVICE_NAME = "youtube"
YOUTUBE_API_VERSION = "v3"
YOUTUBE_CHANNEL_ID = "YOUR CHANNEL ID"

Spotify

  1. Register an App using this link
  2. Create a spotify_secrets.py file inside the spotify folder
  3. Set the following vars :
SPOTIFY_CLIENT_ID = "YOUR APP CLIENT ID"
SPOTIFY_CLIENT_SECRET = "YOUR APP CLIENT SECRET"
SPOTIFY_CLIENT_USERNAME = "YOUR USERNAME"

Global

After setting up your Youtube and Spotify secrets, just set the youtubePlaylistTitle and spotifyPlaylistTitle vars inside the app_bridge.py file that correspond to the name of your Youtube and Spotify playlist to link

Usage

Just run the following commands to launch the script (it will run every hour, but you can modify this in the main.py file)

docker build -t youtube_spotify_bridge .
docker run youtube_spotify_bridge

ToDo

  • Improve configuration process (all vars within a single file)
  • Improve matching process between Youtube and Spotify
  • Documentation
  • Add interface ??

Author

๐Ÿ‘ค KilMer56

Show your support

Give a โญ๏ธ if this project helped you!

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.