-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbc043d
commit 2f61e54
Showing
5 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
|
||
if __name__ == "__main__": | ||
print(__version__) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
from pytubefix import YouTube | ||
from pytubefix import Playlist | ||
from pytubefix.cli import on_progress | ||
|
||
url = input("URL Here >") | ||
|
||
pl = Playlist(url) | ||
|
||
for video in pl.videos: | ||
ys = video.streams.get_audio_only() | ||
ys.download(mp3=True) | ||
url = input("URL >") | ||
yt = YouTube(url, on_progress_callback = on_progress) | ||
print(yt.title) | ||
ys = yt.streams.get_audio_only() # use this method -> get_audio_only() | ||
ys.download(mp3=True) # pass the parameter mp3=Tre to save in .mp3 |