This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://medium.com/@mklaben15/using-python-to-download-a-youtube-playlist-and-convert-to-mp3-for-a-custom-spotify-library-87ab950958a7 | |
| from pytube import YouTube | |
| from pytube import Playlist | |
| import os | |
| import moviepy.editor as mp | |
| import re | |
| from youtubesearchpython import PlaylistsSearch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://medium.com/@mklaben15/using-python-to-download-a-youtube-playlist-and-convert-to-mp3-for-a-custom-spotify-library-87ab950958a7 | |
| # pip install pytube moviepy | |
| from pytube import YouTube | |
| from pytube import Playlist | |
| import os | |
| import moviepy.editor as mp | |
| import re |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class myproperty: | |
| def __init__(self, func): | |
| self.f = func | |
| def setter(self, func): | |
| self.setter_func = func | |
| return self | |
| def __get__(self, instance, klass): | |
| return self.f(instance or klass) |