All Projects → nikhilgaba001 → Youtubetospotify

nikhilgaba001 / Youtubetospotify

A Python script to fetch tracks of music channels on Youtube, find them on Spotify and add them to a playlist

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Youtubetospotify

Smd
Spotify Music Downloader
Stars: ✭ 822 (+2390.91%)
Mutual labels:  spotify-api, music, spotify, youtube
Spotivy
🎼 Download music videos from Spotify playlists
Stars: ✭ 64 (+93.94%)
Mutual labels:  spotify-api, youtube-api, spotify, youtube
Savify
Download Spotify songs to mp3 with full metadata and cover art!
Stars: ✭ 227 (+587.88%)
Mutual labels:  spotify-api, spotify, youtube
Spotitube
Synchronize your Spotify collections downloading from external providers
Stars: ✭ 250 (+657.58%)
Mutual labels:  spotify-api, music, spotify
Youtub.ly Android
An android app to download 📹 videos and songs from youtube to phone internal storage
Stars: ✭ 17 (-48.48%)
Mutual labels:  youtube-api, music, youtube
Spotify Now Playing
Spotify now playing information and control popup for macOS menu bar
Stars: ✭ 171 (+418.18%)
Mutual labels:  spotify-api, music, spotify
Obscurify
Find out more about your music taste and compare it to others' with Obscurify
Stars: ✭ 200 (+506.06%)
Mutual labels:  spotify-api, music, spotify
Spotifyapi Net
🔉 A Client for the Spotify Web API, written in C#/.NET
Stars: ✭ 887 (+2587.88%)
Mutual labels:  spotify-api, music, spotify
Ytmdl
A simple app to get songs from YouTube in mp3 format with artist name, album name etc from sources like iTunes, Spotify, LastFM, Deezer, Gaana etc.
Stars: ✭ 2,070 (+6172.73%)
Mutual labels:  music, spotify, youtube
Alltomp3 App
Download and Convert YouTube, SoundCloud & Spotify in MP3 with full tags (title, artist, genre, cover, lyrics 🔥)
Stars: ✭ 920 (+2687.88%)
Mutual labels:  music, spotify, youtube
Plylst
Smart playlists for Spotify! Stop relying on fancy pants algorithms to organize your library and instead build playlists the way you want.
Stars: ✭ 301 (+812.12%)
Mutual labels:  spotify-api, music, spotify
Spotui
Spotify in the terminal 💻🎶
Stars: ✭ 302 (+815.15%)
Mutual labels:  spotify-api, music, spotify
Coverify
🎧 Design fresh album cover for your Spotify playlists
Stars: ✭ 167 (+406.06%)
Mutual labels:  spotify-api, music, spotify
Listen Now
Listen-now, 提供了多音乐平台的音乐搜索、播放、歌单播放、同步平台歌单到本地数据库,并计划开发智能音乐推荐系统。listen-now主要由学生层级的同学一起开发。
Stars: ✭ 139 (+321.21%)
Mutual labels:  spotify-api, music, spotify
Listentogether
Grab some friends, connect your Spotify account, and listen to music in sync with each other.
Stars: ✭ 19 (-42.42%)
Mutual labels:  spotify-api, music, spotify
Singlespotify
🎵 Create Spotify playlists based on one artist through the command line
Stars: ✭ 254 (+669.7%)
Mutual labels:  spotify-api, music, spotify
Getsong
Download any song mp3 with no dependencies except ffmpeg
Stars: ✭ 102 (+209.09%)
Mutual labels:  music, spotify, youtube
Sonos Web
Web interface for Sonos audio systems
Stars: ✭ 114 (+245.45%)
Mutual labels:  music, spotify, youtube
Spotiflyer
Spotify/Gaana/Youtube Music Downloader For Android!
Stars: ✭ 231 (+600%)
Mutual labels:  music, spotify, youtube
Raveberry
A multi-user music server with a focus on participation
Stars: ✭ 442 (+1239.39%)
Mutual labels:  music, spotify, youtube

YoutubeToSpotify

A Python script to fetch tracks of music channels on Youtube, find them on Spotify and add them to a playlist. The video titles from Youtube are filtered and then searched on Spotify for near perfect results. A CSV file keeps track of the tracks that are added to the Spotify playlist so the script can be executed when required.

picture picture picture

Getting Started

You need these before running the script:

  • Login to Spotify Developer Dashboard and create a new app to obtain the Client ID and Client Secret. Add these to CLIENT_ID and CLIENT_SECRET in the code. After this, click edit settings of the newly created app and add http://localhost/ to Redirect URIs and save.

  • Get the Youtube API key here and add it to API_KEY in the code.

  • Spotipy : Spotipy is a lightweight Python library for the Spotify Web API. With Spotipy you get full access to all of the music data provided by the Spotify platform.

  • The Google APIs Client Library for Python for making requests to Youtube

  • Create a new Spotify Playlist and name it anything you want. Get your spotify username and the playlist id. Copy the username and playlist ID and add them to SPOTIFY_USERNAME and YOUTUBE_PLAYLIST_ID in the code respectively.

Right click on the playlist in Spotify and go to Share > Copy Spotify URI. 

You will receive a URI like this:

spotify:user:john:playlist:70WcLyhxyzRuSGf678MyPd

Installing

To install Spotipy

pip install spotipy

To install Google API

pip install google-api-python-client

Adding channels

To add channels from Youtube, simply access a channel page and examine the URL. If it is like:

https://www.youtube.com/user/ChillStepNation

Just add the part after https://www.youtube.com/user/ to CHANNEL_USERNAMES list in the code. In this case, ChillStepNation.

If the URL is like:

https://www.youtube.com/channel/UCkjnVMHy 

Add the part after https://www.youtube.com/channel/ (Here, UCkjnVMHy) to CHANNEL_IDS dictonary in the code in the format:

{'channelName' : 'channelID'}

To change the number of search results for each channel change MAX_RESULT in the code. Default is 20.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].