rearraged readme
Browse files- README.rst +36 -38
README.rst
CHANGED
@@ -47,44 +47,6 @@ Download using pip via pypi.
|
|
47 |
pip install pytube
|
48 |
|
49 |
|
50 |
-
Command-line usage
|
51 |
-
==================
|
52 |
-
|
53 |
-
You can download a video by simply passing the ``-e`` (or ``--extension=``) switch and
|
54 |
-
setting it to the desired filetype:
|
55 |
-
|
56 |
-
.. code:: bash
|
57 |
-
|
58 |
-
$ pytube -e mp4 http://www.youtube.com/watch?v=Ik-RsDGPI5Y
|
59 |
-
|
60 |
-
|
61 |
-
Same thing for specifying a resolution:
|
62 |
-
|
63 |
-
.. code:: bash
|
64 |
-
|
65 |
-
$ pytube -r 720p http://www.youtube.com/watch?v=Ik-RsDGPI5Y
|
66 |
-
|
67 |
-
|
68 |
-
You can also specify a download file path (``-p`` or ``--path=``):
|
69 |
-
|
70 |
-
.. code:: bash
|
71 |
-
|
72 |
-
$ pytube -e mp4 -p ~/Downloads/ http://www.youtube.com/watch?v=Ik-RsDGPI5Y
|
73 |
-
|
74 |
-
and/or optionally choose the filename (``-f`` or ``--filename=``):
|
75 |
-
|
76 |
-
.. code:: bash
|
77 |
-
|
78 |
-
$ pytube -e mp4 -f Dancing Scene from Pulp Fiction http://www.youtube.com/watch?v=Ik-RsDGPI5Y
|
79 |
-
|
80 |
-
You can also specify a resolution or desired filetype:
|
81 |
-
|
82 |
-
.. code:: bash
|
83 |
-
|
84 |
-
$ pytube -e mp4 -r 720p http://www.youtube.com/watch?v=Ik-RsDGPI5Y
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
Library usage
|
89 |
=============
|
90 |
|
@@ -177,3 +139,39 @@ Library usage
|
|
177 |
# If you wanted to choose the output directory, simply pass it as an
|
178 |
# argument to the download method.
|
179 |
video.download('/tmp/')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
pip install pytube
|
48 |
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
Library usage
|
51 |
=============
|
52 |
|
|
|
139 |
# If you wanted to choose the output directory, simply pass it as an
|
140 |
# argument to the download method.
|
141 |
video.download('/tmp/')
|
142 |
+
|
143 |
+
Command-line usage
|
144 |
+
==================
|
145 |
+
|
146 |
+
You can download a video by simply passing the ``-e`` (or ``--extension=``) switch and
|
147 |
+
setting it to the desired filetype:
|
148 |
+
|
149 |
+
.. code:: bash
|
150 |
+
|
151 |
+
$ pytube -e mp4 http://www.youtube.com/watch?v=Ik-RsDGPI5Y
|
152 |
+
|
153 |
+
|
154 |
+
Same thing for specifying a resolution:
|
155 |
+
|
156 |
+
.. code:: bash
|
157 |
+
|
158 |
+
$ pytube -r 720p http://www.youtube.com/watch?v=Ik-RsDGPI5Y
|
159 |
+
|
160 |
+
|
161 |
+
You can also specify a download file path (``-p`` or ``--path=``):
|
162 |
+
|
163 |
+
.. code:: bash
|
164 |
+
|
165 |
+
$ pytube -e mp4 -p ~/Downloads/ http://www.youtube.com/watch?v=Ik-RsDGPI5Y
|
166 |
+
|
167 |
+
and/or optionally choose the filename (``-f`` or ``--filename=``):
|
168 |
+
|
169 |
+
.. code:: bash
|
170 |
+
|
171 |
+
$ pytube -e mp4 -f Dancing Scene from Pulp Fiction http://www.youtube.com/watch?v=Ik-RsDGPI5Y
|
172 |
+
|
173 |
+
You can also specify a resolution or desired filetype:
|
174 |
+
|
175 |
+
.. code:: bash
|
176 |
+
|
177 |
+
$ pytube -e mp4 -r 720p http://www.youtube.com/watch?v=Ik-RsDGPI5Y
|