ahmedsadman
commited on
Commit
·
5d0eccb
1
Parent(s):
9a071f2
update for playlist download
Browse files- README.rst +13 -0
README.rst
CHANGED
@@ -50,6 +50,7 @@ Features
|
|
50 |
--------
|
51 |
|
52 |
- Support for Both Progressive & DASH Streams
|
|
|
53 |
- Easily Register ``on_download_progress`` & ``on_download_complete`` callbacks
|
54 |
- Command-line Interfaced Included
|
55 |
- Caption Track Support
|
@@ -149,6 +150,18 @@ Conversely, if you only want to see the DASH streams (also referred to as "adapt
|
|
149 |
<Stream: itag="251" mime_type="audio/webm" abr="160kbps" acodec="opus">]
|
150 |
|
151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
Pytube allows you to filter on every property available (see the documentation for the complete list), let's take a look at some of the most useful ones.
|
153 |
|
154 |
To list the audio only streams:
|
|
|
50 |
--------
|
51 |
|
52 |
- Support for Both Progressive & DASH Streams
|
53 |
+
- Support for downloading complete playlist
|
54 |
- Easily Register ``on_download_progress`` & ``on_download_complete`` callbacks
|
55 |
- Command-line Interfaced Included
|
56 |
- Caption Track Support
|
|
|
150 |
<Stream: itag="251" mime_type="audio/webm" abr="160kbps" acodec="opus">]
|
151 |
|
152 |
|
153 |
+
You can also download a complete Youtube playlist:
|
154 |
+
|
155 |
+
.. code-block:: python
|
156 |
+
|
157 |
+
>>> from pytube import Playlist
|
158 |
+
>>> pl = Playlist("https://www.youtube.com/watch?v=Edpy1szoG80&list=PL153hDY-y1E00uQtCVCVC8xJ25TYX8yPU")
|
159 |
+
>>> pl.download_all()
|
160 |
+
|
161 |
+
This will download the highest progressive stream available (generally 720p) from the given playlist. Later more option would be give users flexibility
|
162 |
+
to choose video resolution. Playlist videos will be downloaded in the directory from where the command was run.
|
163 |
+
|
164 |
+
|
165 |
Pytube allows you to filter on every property available (see the documentation for the complete list), let's take a look at some of the most useful ones.
|
166 |
|
167 |
To list the audio only streams:
|