File size: 2,123 Bytes
8464dc1
a03cd5b
8464dc1
12d8cde
0952abe
a03cd5b
8464dc1
12d8cde
8464dc1
a03cd5b
8464dc1
8c2ee02
8464dc1
8c2ee02
bff3e77
 
 
685331f
 
a03cd5b
12d8cde
a03cd5b
a6e1ce1
a03cd5b
5afc31c
585bfba
12d8cde
 
97f04a9
244e24f
 
 
 
12d8cde
cebfd46
 
 
 
 
 
 
d309b2d
cebfd46
 
 
 
12d8cde
 
685331f
 
 
12d8cde
cebfd46
 
 
 
dee9ec3
685331f
 
cbc4903
be07012
181c88c
5340b13
685331f
cebfd46
685331f
12d8cde
 
685331f
 
a03cd5b
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.. pytube documentation master file, created by sphinx-quickstart on Mon Oct  9 02:11:41 2017.

pytube
======
Release v\ |version|. (:ref:`Installation<install>`)

.. image:: https://img.shields.io/pypi/v/pytube.svg
  :alt: Pypi
  :target: https://pypi.python.org/pypi/pytube/

.. image:: https://img.shields.io/pypi/pyversions/pytube.svg
  :alt: Python Versions
  :target: https://pypi.python.org/pypi/pytube/

.. image:: https://readthedocs.org/projects/python-pytube/badge/?version=latest&style=flat-square
  :alt: Readthedocs

**pytube** is a lightweight, Pythonic, dependency-free, library (and
command-line utility) for downloading YouTube Videos.

-------------------

**Behold, a perfect balance of simplicity versus flexibility**::

    >>> from pytube import YouTube
    >>> YouTube('https://youtu.be/9bZkp7q19f0').streams.first().download()
    >>> yt = YouTube('http://youtube.com/watch?v=9bZkp7q19f0')
    >>> yt.streams
    ... .filter(progressive=True, file_extension='mp4')
    ... .order_by('resolution')
    ... .desc()
    ... .first()
    ... .download()

Features
--------

- Support for Both Progressive & DASH Streams
- Easily Register ``on_download_progress`` & ``on_download_complete`` callbacks
- Command-line Interfaced Included
- Caption Track Support
- Outputs Caption Tracks to .srt format (SubRip Subtitle)
- Ability to Capture Thumbnail URL.
- Extensively Documented Source Code
- No Third-Party Dependencies

The User Guide
--------------
This part of the documentation begins with some background information about
the project, then focuses on step-by-step instructions for getting the most out
of pytube.

.. toctree::
   :maxdepth: 2

   user/install
   user/quickstart
   user/streams
   user/captions
   user/playlist
   user/channel
   user/search
   user/cli
   user/exceptions

The API Documentation
-----------------------------

If you are looking for information on a specific function, class, or method,
this part of the documentation is for you.

.. toctree::
   :maxdepth: 2

   api


Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`