This file is indexed.

/usr/lib/python2.7/dist-packages/Pafy-0.3.62.egg-info/PKG-INFO is in python-pafy 0.3.62-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
Metadata-Version: 1.1
Name: Pafy
Version: 0.3.62
Summary: Retrieve YouTube content and metadata
Home-page: http://np1.github.io/pafy/
Author: nagev
Author-email: np1nagev@gmail.com
License: UNKNOWN
Download-URL: https://github.com/np1/pafy/tarball/master
Description: .. image:: http://badge.fury.io/py/Pafy.png
            :target: https://pypi.python.org/pypi/Pafy
        .. image:: https://pypip.in/d/Pafy/badge.png
            :target: https://pypi.python.org/pypi/Pafy
        .. image:: https://coveralls.io/repos/np1/pafy/badge.png?branch=master
            :target: https://coveralls.io/r/np1/pafy?branch=master
        .. image:: https://travis-ci.org/np1/pafy.svg?branch=master
            :target: https://travis-ci.org/np1/pafy
        .. image:: https://pypip.in/wheel/Pafy/badge.png
            :target: http://pythonwheels.com/
            :alt: Wheel Status
        
        Features
        --------
        
        - Retreive metadata such as viewcount, duration, rating, author, thumbnail, keywords
        - Download video or audio at requested resolution / bitrate / format / filesize
        - Command line tool (ytdl) for downloading directly from the command line
        - Retrieve the URL to stream the video in a player such as vlc or mplayer
        - Works with age-restricted videos and non-embeddable videos
        - Small, standalone, single importable module file (pafy.py)
        - Select highest quality stream for download or streaming
        - Download audio only (no video) in ogg or m4a format
        - Download video only (no audio) in m4v format
        - Retreive playlists and playlist metadata
        - Works with Python 2.6+ and 3.3+
        - No dependencies
        
        
        Documentation
        -------------
        
        Full documentation is available at http://pythonhosted.org/Pafy
        
        Usage Examples
        --------------
        
        Here is how to use the module in your own python code.  For command line tool
        (ytdl) instructions, see further below
        
        .. code-block:: pycon
        
            >>> import pafy
        
        create a video instance from a YouTube url:
        
        .. code-block:: pycon
        
            >>> url = "https://www.youtube.com/watch?v=bMt47wvK6u0"
            >>> video = pafy.new(url)
        
        get certain attributes:
        
        .. code-block:: pycon
            
            >>> video.title
            'Richard Jones: Introduction to game programming - PyCon 2014'
        
            >>> video.rating
            5.0
        
            >>> video.viewcount, video.author, video.length
            (1916, 'PyCon 2014', 10394)
        
            >>> video.duration, video.likes, video.dislikes
            ('02:53:14', 25, 0)
        
            >>> print(video.description)
            Speaker: Richard Jones
        
            This tutorial will walk the attendees through development of a simple game using PyGame with time left over for some experimentation and exploration of different types of games.
        
            Slides can be found at: https://speakerdeck.com/pycon2014 and https://github.com/PyCon/2014-slides
        
        
        list available streams for a video:
        
        .. code-block:: pycon
        
            >>> streams = video.streams
            >>> for s in streams:
            ...     print(s)
            ...
            normal:mp4@1280x720
            normal:webm@640x360
            normal:mp4@640x360
            normal:flv@320x240
            normal:3gp@320x240
            normal:3gp@176x144
        
        
        show all formats, file-sizes and their download url:
        
        .. code-block:: pycon
        
            >>> for s in streams:
            ...    print(s.resolution, s.extension, s.get_filesize(), s.url)
            ...
            1280x720 mp4 2421958510 https://r1---sn-aiglln7e.googlevideo.com/videoplayba[...]
            640x360 webm 547015732 https://r1---sn-aiglln7e.googlevideo.com/videoplaybac[...]
            640x360 mp4 470655850 https://r1---sn-aiglln7e.googlevideo.com/videoplayback[...]
            320x240 flv 345455674 https://r1---sn-aiglln7e.googlevideo.com/videoplayback[...]
            320x240 3gp 208603447 https://r1---sn-aiglln7e.googlevideo.com/videoplayback[...]
            176x144 3gp 60905732 https://r1---sn-aiglln7e.googlevideo.com/videoplayback?[...]
        
        
        get best resolution regardless of file format:
        
        .. code-block:: pycon
        
            >>> best = video.getbest()
            >>> best.resolution, best.extension
            ('1280x720', 'mp4')
        
        
        get best resolution for a particular file format:
        (mp4, webm, flv or 3gp)
        
        .. code-block:: pycon
        
            >>> best = video.getbest(preftype="webm")
            >>> best.resolution, best.extension
            ('640x360', 'webm')
        
        get url, for download or streaming in mplayer / vlc etc:
        
        .. code-block:: pycon
            
            >>> best.url
            'http://r12---sn-aig7kner.c.youtube.com/videoplayback?expire=1369...
        
        Download video and show progress:
        
        .. code-block:: pycon
        
            >>> best.download(quiet=False)
            3,734,976 Bytes [0.20%] received. Rate: [ 719 KB/s].  ETA: [3284 secs]
        
        Download video, use specific filepath:
        
        .. code-block:: pycon
        
            >>> myfilename = "/tmp/" + best.title + "." + best.extension
            >>> best.download(filepath=myfilename)
        
        
        Get audio-only streams (m4a and/or ogg vorbis):
        
        .. code-block:: pycon
        
            >>> audiostreams = video.audiostreams
            >>> for a in audiostreams:
            ...     print(a.bitrate, a.extension, a.get_filesize())
            ...
            128k m4a 165076649
            128k ogg 108981120
        
        
        Download the 2nd audio stream from the above list:
        
        .. code-block:: pycon
        
            >>> audiostreams[1].download()
        
        Get the best quality audio stream:
        
        .. code-block:: pycon
        
            >>> bestaudio = video.getbestaudio()
            >>> bestaudio.bitrate
            '128k'
        
        Download the best quality audio file:
        
        .. code-block:: pycon
        
            >>> bestaudio.download()
        
        show ALL formats for a video (video+audio, video-only and audio-only):
        
        .. code-block:: pycon
        
            >>> allstreams = video.allstreams
            >>> for s in allstreams:
            ...     print(s.mediatype, s.extension, s.quality)
            ...
            normal mp4 1280x720
            normal webm 640x360
            normal mp4 640x360
            normal flv 320x240
            normal 3gp 320x240
            normal 3gp 176x144
            video m4v 1280x720
            video webm 720x480
            video m4v 854x480
            video webm 640x480
            video m4v 640x360
            video webm 480x360
            video m4v 426x240
            video webm 360x240
            video m4v 256x144
            audio m4a 128k
            audio ogg 128k
        
        
        Installation
        ------------
        
        Pafy can be installed using `pip <http://www.pip-installer.org>`_:
        
        .. code-block:: bash
        
            $ [sudo] pip install pafy
        
        or use a `virtualenv <http://virtualenv.org>`_ if you don't want to install it system-wide:
        
        .. code-block:: bash
        
            $ virtualenv venv
            $ source venv/bin/activate
            $ pip install pafy
        
        
        Alternatively you can just grab the pafy.py file and import it in your python
        code:
        
        .. code-block:: bash
        
            wget https://raw.githubusercontent.com/np1/pafy/master/pafy/pafy.py
        
        
        Command Line Tool (ytdl) Usage
        ------------------------------
        
        
        .. code-block:: bash
        
            usage: ytdl [-h] [-i] [-s]
                        [-t {audio,video,normal,all} [{audio,video,normal,all} ...]]
                        [-n N] [-b] [-a]
                        url
        
            YouTube Download Tool
        
            positional arguments:
              url                   YouTube video URL to download
        
            optional arguments:
              -h, --help            show this help message and exit
              -i                    Display vid info
              -s                    Display available streams
              -t {audio,video,normal,all} [{audio,video,normal,all} ...]
                                    Stream types to display
              -n N                  Specify stream to download by stream number (use -s to
                                    list available streams)
              -b                    Download the best quality video (ignores -n)
              -a                    Download the best quality audio (ignores -n)
        
        
        ytdl Examples
        -------------
        
        Download best available resolution (-b):
        
        .. code-block:: bash
        
            $ ytdl -b "http://www.youtube.com/watch?v=cyMHZVT91Dw"
        
        Download best available audio stream (-a)
        (note; the full url is not required, just the video id will suffice):
        
        .. code-block:: bash
        
            $ ytdl -a cyMHZVT91Dw
        
        
        get video info (-i):
        
        .. code-block:: bash
        
            $ ytdl -i cyMHZVT91Dw
        
        list available dowload streams:
        
        .. code-block:: bash
        
            $ ytdl cyMHZVT91Dw
         
            Stream Type    Format Quality         Size            
            ------ ----    ------ -------         ----            
            1      normal  webm   [640x360]       33 MB           
            2      normal  mp4    [640x360]       24 MB           
            3      normal  flv    [320x240]       13 MB           
            4      normal  3gp    [320x240]       10 MB           
            5      normal  3gp    [176x144]        3 MB           
            6      audio   m4a    [48k]            2 MB           
            7      audio   m4a    [128k]           5 MB           
            8      audio   m4a    [256k]          10 MB     
        
         
        Download mp4 640x360 (ie. stream number 2):
        
        .. code-block:: bash
        
            $ ytdl -n2 cyMHZVT91Dw
        
        Download m4a audio stream at 256k bitrate:
        
        .. code-block:: bash
        
            $ ytdl -n8 cyMHZVT91Dw
        
Keywords: Pafy,API,YouTube,youtube,download,video
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Operating System :: MacOS :: MacOS 9
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft
Classifier: Operating System :: Microsoft :: Windows :: Windows 7
Classifier: Operating System :: Microsoft :: Windows :: Windows XP
Classifier: Operating System :: Microsoft :: Windows :: Windows Vista
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Intended Audience :: Developers
Classifier: Development Status :: 5 - Production/Stable
Classifier: Topic :: Multimedia :: Sound/Audio :: Capture/Recording
Classifier: Topic :: Utilities
Classifier: Topic :: Multimedia :: Video
Classifier: Topic :: Internet :: WWW/HTTP