nficano commited on
Commit
bf9119a
·
1 Parent(s): 06297f7

Cleaned up the README a tad.

Browse files
Files changed (1) hide show
  1. README.rst +10 -6
README.rst CHANGED
@@ -23,19 +23,23 @@ Usage example
23
 
24
  >>> from youtube import YouTube
25
  >>> yt = YouTube()
26
- >>> yt.url = "http://www.youtube.com/watch?v=oHg5SJYRHA0"
27
- >>> #View all encoding/quality options.
 
28
  >>> yt.videos
29
  [<Video: flv - 360p>, <Video: mp4 - 360p>, <Video: flv - 224p>]
30
- >>> #Similar to the Django ORM, you can filter.
 
31
  >>> yt.filter('flv')
32
  [<Video: flv - 360p>, <Video: flv - 224p>]
 
33
  >>> yt.filter(res='360p')
34
  [<Video: flv - 360p>, <Video: mp4 - 360p>]
35
- >>> #And get too.
 
36
  >>> rick_astley = yt.get('mp4')
37
- >>> #Okay, let's download!
 
38
  >>> rick_astley.download()
39
  Downloading: RickRollD.mp4 Bytes: 10407900
40
  2449408 [23.53%]
41
- >>> #Enjoy.
 
23
 
24
  >>> from youtube import YouTube
25
  >>> yt = YouTube()
26
+ >>> yt.url = "http://www.youtube.com/watch?v=oHg5SJYRHA0
27
+
28
+ >>> # View all encoding/quality options.
29
  >>> yt.videos
30
  [<Video: flv - 360p>, <Video: mp4 - 360p>, <Video: flv - 224p>]
31
+
32
+ >>> # Similar to the Django ORM, you can filter.
33
  >>> yt.filter('flv')
34
  [<Video: flv - 360p>, <Video: flv - 224p>]
35
+
36
  >>> yt.filter(res='360p')
37
  [<Video: flv - 360p>, <Video: mp4 - 360p>]
38
+
39
+ >>> # You can even use get()
40
  >>> rick_astley = yt.get('mp4')
41
+
42
+ >>> # Okay, let's download!
43
  >>> rick_astley.download()
44
  Downloading: RickRollD.mp4 Bytes: 10407900
45
  2449408 [23.53%]