nficano commited on
Commit
f5271a3
·
1 Parent(s): aaadb3c

updated readme

Browse files
Files changed (1) hide show
  1. README.rst +2 -61
README.rst CHANGED
@@ -38,68 +38,9 @@ Download using pip via pypi.
38
 
39
  pip install pytube
40
 
41
-
42
- Library usage
43
- =============
44
 
45
  .. code-block:: python
46
 
47
  >>> from pytube import YouTube
48
- >>> yt = YouTube('http://www.youtube.com/watch?v=9bZkp7q19f0')
49
-
50
- >>> # Let's show the available streams:
51
- >>> yt.streams.all()
52
- [<Stream: itag="22" mime_type="video/mp4" res="720p" fps="30fps" vcodec="avc1.64001F" acodec="mp4a.40.2">,
53
- <Stream: itag="43" mime_type="video/webm" res="360p" fps="30fps" vcodec="vp8.0" acodec="vorbis">,
54
- <Stream: itag="18" mime_type="video/mp4" res="360p" fps="30fps" vcodec="avc1.42001E" acodec="mp4a.40.2">,
55
- <Stream: itag="36" mime_type="video/3gpp" res="240p" fps="30fps" vcodec="mp4v.20.3" acodec="mp4a.40.2">,
56
- <Stream: itag="17" mime_type="video/3gpp" res="144p" fps="30fps" vcodec="mp4v.20.3" acodec="mp4a.40.2">,
57
- <Stream: itag="137" mime_type="video/mp4" res="1080p" fps="30fps" vcodec="avc1.640028">,
58
- <Stream: itag="248" mime_type="video/webm" res="1080p" fps="30fps" vcodec="vp9">,
59
- <Stream: itag="136" mime_type="video/mp4" res="720p" fps="30fps" vcodec="avc1.4d401f">,
60
- <Stream: itag="247" mime_type="video/webm" res="720p" fps="30fps" vcodec="vp9">,
61
- <Stream: itag="135" mime_type="video/mp4" res="480p" fps="30fps" vcodec="avc1.4d401e">,
62
- <Stream: itag="244" mime_type="video/webm" res="480p" fps="30fps" vcodec="vp9">,
63
- <Stream: itag="134" mime_type="video/mp4" res="360p" fps="30fps" vcodec="avc1.4d401e">,
64
- <Stream: itag="243" mime_type="video/webm" res="360p" fps="30fps" vcodec="vp9">,
65
- <Stream: itag="133" mime_type="video/mp4" res="240p" fps="30fps" vcodec="avc1.4d4015">,
66
- <Stream: itag="242" mime_type="video/webm" res="240p" fps="30fps" vcodec="vp9">,
67
- <Stream: itag="160" mime_type="video/mp4" res="144p" fps="30fps" vcodec="avc1.4d400c">,
68
- <Stream: itag="278" mime_type="video/webm" res="144p" fps="30fps" vcodec="vp9">,
69
- <Stream: itag="140" mime_type="audio/mp4" abr="128kbps" acodec="mp4a.40.2">,
70
- <Stream: itag="171" mime_type="audio/webm" abr="128kbps" acodec="vorbis">,
71
- <Stream: itag="249" mime_type="audio/webm" abr="50kbps" acodec="opus">,
72
- <Stream: itag="250" mime_type="audio/webm" abr="70kbps" acodec="opus">,
73
- <Stream: itag="251" mime_type="audio/webm" abr="160kbps" acodec="opus">]
74
-
75
- >>> # neat. let's download this first one.
76
- >>> yt.streams.first().download()
77
-
78
- Development
79
- ===========
80
-
81
- Development of "pytube" is facilitated exclusively on GitHub. Contributions in the form of patches, tests and feature creation and/or requests are very welcome and highly encouraged. Please open an issue if this tool does not function as you'd expect.
82
-
83
-
84
- How to release updates
85
- ----------------------
86
-
87
- If this is the first time you're releasing to pypi, you'll need to run: ``pip install -r tests/dev_requirements.txt``.
88
-
89
- Once complete, execute the following commands:
90
-
91
- .. code:: bash
92
-
93
- git checkout master
94
-
95
- # Increment the version number and tag the release.
96
- bumpversion [major|minor|patch]
97
-
98
- # Upload the distribution to PyPi
99
- python setup.py sdist bdist_wheel upload
100
-
101
- # Since master often contains work-in-progress changes, increment the version
102
- # to a patch release to prevent inaccurate attribution.
103
- bumpversion --no-tag patch
104
-
105
- git push origin master --tags
 
38
 
39
  pip install pytube
40
 
41
+ Behold, the power of pytube:
 
 
42
 
43
  .. code-block:: python
44
 
45
  >>> from pytube import YouTube
46
+ >>> YouTube('http://youtube.com/watch?v=9bZkp7q19f0').streams.first().download()