readme update
Browse files- README.rst +13 -0
README.rst
CHANGED
@@ -24,6 +24,19 @@ pytube
|
|
24 |
|
25 |
*pytube* is a lightweight, dependency-free Python library (and command-line utility) for downloading YouTube Videos.
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
Installation
|
28 |
============
|
29 |
|
|
|
24 |
|
25 |
*pytube* is a lightweight, dependency-free Python library (and command-line utility) for downloading YouTube Videos.
|
26 |
|
27 |
+
-------------------
|
28 |
+
|
29 |
+
**Behold, a perfect balance of simplicity versus flexibility**::
|
30 |
+
|
31 |
+
>>> YouTube('https://youtu.be/9bZkp7q19f0').streams.first().download()
|
32 |
+
>>> yt = YouTube('http://youtube.com/watch?v=9bZkp7q19f0')
|
33 |
+
>>> yt.streams
|
34 |
+
... .filter(progressive=True, file_extension='mp4')
|
35 |
+
... .order_by('resolution')
|
36 |
+
... .desc()
|
37 |
+
... .first()
|
38 |
+
... .download()
|
39 |
+
|
40 |
Installation
|
41 |
============
|
42 |
|