Nick Ficano
commited on
Commit
·
f4c1990
1
Parent(s):
1462750
updated readme
Browse files
README.md
CHANGED
@@ -1,9 +1,7 @@
|
|
1 |
-

|
2 |
-
|
3 |
# A lightweight, dependency-free Python library for downloading YouTube Videos.
|
4 |
|
5 |
Downloading videos from YouTube shouldn't require some bloatware application,
|
6 |
-
it's usually a niche condition you want to do so in the first place. So I
|
7 |
present to you, PyTube!
|
8 |
|
9 |
|
@@ -21,13 +19,13 @@ or even better:
|
|
21 |
$ pip install pytube
|
22 |
```
|
23 |
|
24 |
-
or you can get the [source code from github](https://github.com/NFicano/pytube.
|
25 |
|
26 |
### Roadmap
|
27 |
|
28 |
The only features I see implementing in the near future are:
|
29 |
|
30 |
-
- refactor console printing into separate command-line utility.
|
31 |
- Add nosetests
|
32 |
- Add Sphinx documentation
|
33 |
|
@@ -78,16 +76,16 @@ pprint(yt.filter('flv'))
|
|
78 |
# <Video: H.264 (.flv) - 360p>,
|
79 |
# <Video: H.264 (.flv) - 480p>]
|
80 |
|
81 |
-
# notice that the list is ordered by lowest resolution to highest. If you
|
82 |
# wanted the highest resolution available for a specific file type, you
|
83 |
-
# can simply do:
|
84 |
print yt.filter('mp4')[-1]
|
85 |
#<Video: H.264 (.mp4) - 720p>
|
86 |
|
87 |
# you can also get all videos for a given resolution
|
88 |
pprint(yt.filter(res='480p'))
|
89 |
|
90 |
-
#[<Video: H.264 (.flv) - 480p>,
|
91 |
#<Video: VP8 (.webm) - 480p>]
|
92 |
|
93 |
# to select a video by a specific resolution and filetype you can use the get
|
@@ -125,7 +123,7 @@ video.download()
|
|
125 |
# Downloading: Pulp Fiction - Dancing Scene.mp4 Bytes: 37561829
|
126 |
# 37561829 [100.00%]
|
127 |
|
128 |
-
# Note: If you wanted to choose the output directory, simply pass it as an
|
129 |
# argument to the download method.
|
130 |
video.download('/tmp/')
|
131 |
```
|
|
|
|
|
|
|
1 |
# A lightweight, dependency-free Python library for downloading YouTube Videos.
|
2 |
|
3 |
Downloading videos from YouTube shouldn't require some bloatware application,
|
4 |
+
it's usually a niche condition you want to do so in the first place. So I
|
5 |
present to you, PyTube!
|
6 |
|
7 |
|
|
|
19 |
$ pip install pytube
|
20 |
```
|
21 |
|
22 |
+
or you can get the [source code from github](https://github.com/NFicano/pytube).
|
23 |
|
24 |
### Roadmap
|
25 |
|
26 |
The only features I see implementing in the near future are:
|
27 |
|
28 |
+
- refactor console printing into separate command-line utility.
|
29 |
- Add nosetests
|
30 |
- Add Sphinx documentation
|
31 |
|
|
|
76 |
# <Video: H.264 (.flv) - 360p>,
|
77 |
# <Video: H.264 (.flv) - 480p>]
|
78 |
|
79 |
+
# notice that the list is ordered by lowest resolution to highest. If you
|
80 |
# wanted the highest resolution available for a specific file type, you
|
81 |
+
# can simply do:
|
82 |
print yt.filter('mp4')[-1]
|
83 |
#<Video: H.264 (.mp4) - 720p>
|
84 |
|
85 |
# you can also get all videos for a given resolution
|
86 |
pprint(yt.filter(res='480p'))
|
87 |
|
88 |
+
#[<Video: H.264 (.flv) - 480p>,
|
89 |
#<Video: VP8 (.webm) - 480p>]
|
90 |
|
91 |
# to select a video by a specific resolution and filetype you can use the get
|
|
|
123 |
# Downloading: Pulp Fiction - Dancing Scene.mp4 Bytes: 37561829
|
124 |
# 37561829 [100.00%]
|
125 |
|
126 |
+
# Note: If you wanted to choose the output directory, simply pass it as an
|
127 |
# argument to the download method.
|
128 |
video.download('/tmp/')
|
129 |
```
|