File size: 2,457 Bytes
a03cd5b
 
 
 
 
12d8cde
 
 
a03cd5b
12d8cde
 
 
a03cd5b
12d8cde
 
 
a03cd5b
12d8cde
 
 
a03cd5b
10a68e8
12d8cde
 
a03cd5b
8c2ee02
 
 
 
12d8cde
a03cd5b
12d8cde
a03cd5b
a6e1ce1
a03cd5b
585bfba
12d8cde
 
97f04a9
244e24f
 
 
 
12d8cde
cebfd46
 
 
 
 
 
 
d309b2d
cebfd46
 
 
 
12d8cde
 
 
 
cebfd46
 
 
 
 
12d8cde
 
 
 
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
.. pytube documentation master file, created by
   sphinx-quickstart on Mon Oct  9 02:11:41 2017.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

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://travis-ci.org/nficano/pytube.svg?branch=master
   :alt: Build status
   :target: https://travis-ci.org/nficano/pytube

.. image:: https://readthedocs.org/projects/python-pytube/badge/?version=latest
  :target: http://python-pytube.readthedocs.io/en/latest/?badge=latest
  :alt: Documentation Status

.. image:: https://coveralls.io/repos/github/nficano/pytube/badge.svg?branch=master
  :alt: Coverage
  :target: https://coveralls.io/github/nficano/pytube?branch=master

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

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

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

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

    >>> 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

The API Documentation / Guide
-----------------------------

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`