NFicano/python-youtube-download — pull request #3 by lextoumbourou (2012-10-29 12:21:32+00:00)
Title: get_highest_res() method addition

Submitting a proposal for a new method called get_highest_res(). It allows the user to automatically get the highest Youtube resolution. They can also specify the preferred file format, though it will favour highest quality over preferred format.

Here it is in action against your Readme example:

```
>>> from pytube import YouTube
>>> from pprint import pprint
>>> yt = YouTube()
>>> yt.url = "http://www.youtube.com/watch?v=Ik-RsDGPI5Y"
>>> pprint(yt.videos)
[,
,
,
,
,
,
,
,
,
]
>>> yt.get_highest_res('webm')

>>> yt.get_highest_res()

>>> yt.get_highest_res('flv')

```