4 umph - Command line tool for parsing video links from Youtube feeds
8 umph [-q] [-i] [--csv | --json] [-t E<lt>typeE<gt>]
9 [--proxy E<lt>addrE<gt> | --no-proxy]
10 [E<lt>playlist_idE<gt> | E<lt>usernameE<gt>]
14 umph is a command line tool for parsing video links from Youtube feeds,
15 such as playlists, favorites and uploads. The parsed video links are
16 printed to the standard output each separated with a newline.
18 If you need to select the videos, use the C<--interactive> switch.
28 =item B<-v, --version>
30 Print version and exit.
34 Print license and exit.
40 =item B<-t, --type>=I<arg>
42 Specifies the feed type to get. I<arg> can be one of the following:
44 p, playlist (arg0 will be treated as playlist ID)
45 f, favorites (arg0 will be treated as username)
48 Default is "p" (playlist). See also L</EXAMPLES>.
50 =item B<-s, --start-index>=I<arg>
52 "The start-index parameter specifies the index of the first matching result
53 that should be included in the result set. This parameter uses a one-based
54 index, meaning the first result is 1, the second result is 2 and so forth.
56 This parameter works in conjunction with the C<--max-results> parameter to
57 determine which results to return. For example, to request the second set
58 of 10 results, i.e. results 11-20, set the start-index parameter to 11
59 and the max-results parameter to 10."
61 <http://code.google.com/apis/youtube/2.0/reference.html#start-indexsp>
65 =item B<-m, --max-results>=I<arg>
67 "The max-results parameter specifies the maximum number of results that
68 should be included in the result set.
70 This parameter works in conjunction with the C<--start-index> parameter
71 to determine which results to return. For example, to request the second
72 set of 10 results, i.e. results 11-20, set the max-results parameter
73 to 10 and the start-index parameter to 11.
75 The default value of this parameter is 25, and the maximum value is 50.
76 However, for displaying lists of videos, we recommend that you set the
77 max-results parameter to 10."
79 <http://code.google.com/apis/youtube/2.0/reference.html#max-resultssp>
83 =item B<-i, --interactive>
85 Enable interactive prompt which can be used to select the videos from the
86 feed. By default umph selects all of the feed items.
90 Print details in JSON. Negates --csv.
94 Print details in CSV ("$title","$url"\n).
96 =item B<--proxy> I<arg>
98 Use I<arg> for HTTP proxy, e.g. "http://foo:1234". Overrides the http_proxy
103 Disable use of HTTP proxy. Overrides both C<--proxy> and http_proxy environment
112 =item umph AAF3A1D0CA1E304F
114 Fetch and parse playlist "AAF3A1D0CA1E304F".
116 =item umph --json AAF3A1D0CA1E304F
118 Same as above, but print the details in JSON.
120 =item umph -s 11 -m 10 AAF3A1D0CA1E304F
122 Same as above but get the items 11-20 from the playlist.
124 =item umph -t f youtube
126 Fetch and parse favorites for user "youtube".
128 =item umph -t u youtube
130 Fetch and parse uploads for user "youtube".
132 =item umph AAF3A1D0CA1E304F | cclive -f mp4_360p
134 Print the parsed playlist items (links) to stdout, use C<cclive(1)>
141 Exits 0 on success, otherwise 1.
147 =item $HOME/.umphrc, for example:
149 echo "--interactive" >> ~/.umphrc
159 umph depends on XML::DOM which uses LWP::UserAgent to fetch the data
160 over the network. LWP::UserAgent reads the http_proxy environment
163 env http_proxy=http://foo:1234 umph AAF3A1D0CA1E304F
165 =item B<Unavailable feeds>
167 Some feeds may have been set private by the Youtube users. umph
168 cannot currently fetch and parse those.
174 E<lt>http://umph.googlecode.com/E<gt>
176 E<lt>http://repo.or.cz/w/umph.gitE<gt>
184 Toni Gundogdu <legatvs at sign gmail com>