
Video = youtube_dl.YoutubeDL(".format(self. Convert playlists and favorites between different music platforms. # use youtube_dl to collect song name and artist name # collect each video and get important information Part="snippet,contentDetails,statistics", myRating="like" Youtube_client = (Īpi_service_name, api_version, credentials=credentials) # Get credentials and create an API clientįlow = google_auth_client_secrets_file( Os.environ = "1"Ĭlient_secrets_file = "youtube_auth.json"

# *DO NOT* leave this option enabled in production. # Disable OAuthlib's HTTPS verification when running locally. Self.youtube_client = self.get_youtube_client()


The liked youtube videos of my youtube account should automatically come inside my Spotify newly created playlistįrom secret import spotify_token, spotify_user_id.Using Youtube Data API to retrieve liked videos.Using Spotify API to Create a Playlist and add music to the playlist.
