4 umph - Command line tool for parsing YouTube feeds
8 umph [-q] [-i] [--type=E<lt>valueE<gt>]
9 [--export-response=E<lt>valueE<gt>] [--export-format=E<lt>valueE<gt>]
10 [[--all | [--start-index=E<lt>valueE<gt>] [--max-results=E<lt>valueE<gt>]]
11 [--proxy=E<lt>addrE<gt> | --no-proxy] [--user-agent=E<lt>valueE<gt>]
12 [--help] E<lt>playlist_idE<gt> | E<lt>usernameE<gt>
16 umph is a command line tool for parsing YouTube feeds. It can parse
17 playlists, favorite lists, and user upload lists.
19 umph prints the found URLs to the standard output, each URL separated
20 with a newline. It can be used to select the feed items by using the
21 C<--interactive> prompt.
31 Print version and exit.
35 Turn off output to stderr, e.g. status changes. Warnings and errors are
38 =head2 -t, --type I<arg> (=p)
40 Specifies the feed type to get. I<arg> can be one of the following:
42 p, playlist (arg0 will be treated as playlist ID)
43 f, favorites (arg0 will be treated as username)
46 See also L</EXAMPLES>.
48 =head2 -s, --start-index I<arg> (=1)
50 "The start-index parameter specifies the index of the first matching result
51 that should be included in the result set. This parameter uses a one-based
52 index, meaning the first result is 1, the second result is 2 and so forth.
54 This parameter works in conjunction with the C<--max-results> parameter to
55 determine which results to return. For example, to request the second set
56 of 10 results, i.e. results 11-20, set the start-index parameter to 11
57 and the max-results parameter to 10." -- E<lt>http://is.gd/l4wDNfE<gt>
59 C<--all> causes umph to ignore the value set with this option.
61 =head2 -m, --max-results I<arg> (=25)
63 "The max-results parameter specifies the maximum number of results that
64 should be included in the result set.
66 This parameter works in conjunction with the C<--start-index> parameter
67 to determine which results to return. For example, to request the second
68 set of 10 results, i.e. results 11-20, set the max-results parameter
69 to 10 and the start-index parameter to 11.
71 The default value of this parameter is 25, and the maximum value is 50.
72 However, for displaying lists of videos, we recommend that you set the
73 max-results parameter to 10." -- E<lt>http://is.gd/OcSjwUE<gt>
75 C<--all> causes umph to ignore the value set with this option.
81 =head2 -i, --interactive
83 Open the interactive prompt which can be used to select the items.
84 umph selects I<all> feed items by default. See also L</INTERACTIVE PROMPT>.
86 =head2 -E, --export-response I<arg>
88 Write server error response (XML) to file I<arg> and exit with status 1.
89 Normally, the program parses the response and prints it to the stderr.
91 =head2 -d, --export-format I<arg>
93 Set the interchange format in which the data is to be printed.
99 By default, umph prints out each media URL separated by a newline.
101 =head2 --json [depr.]
103 Print details in JSON. Negates --csv.
104 This option is deprecated since 0.2.2, use C<--export-format>, instead.
108 Print details in CSV.
109 This option is deprecated since 0.2.2, use C<--export-format>, instead.
111 =head2 --user-agent, -g I<arg>
113 Set the user-agent string to send to the HTTP server. The default value
116 =head2 --proxy I<arg>
118 Use I<arg> for HTTP proxy, e.g. "http://foo:1234". Overrides the http_proxy
123 Disable use of HTTP proxy. Overrides both C<--proxy> and B<http_proxy>
124 environment settings.
126 =head1 INTERACTIVE PROMPT
128 The interactive prompt may be used to select the feed items. The prompt may be
129 useful when the feed contains many items and you wish to limit the
130 selection to cover only some of them.
134 This requires the Umph::Prompt module.
138 =head2 umph AAF3A1D0CA1E304F
140 Get the playlist "AAF3A1D0CA1E304F".
142 =head2 umph -s 11 -m 10 AAF3A1D0CA1E304F
144 Like above but get the items 11-20 from the playlist.
146 =head2 umph -a AAF3A1D0CA1E304F
148 Get the entire playlist. By default, umph gets only the items 1-25.
149 See also C<--start-index> and C<--max-results>.
153 Get the favorites for user "foo".
157 Get the uploads for user "foo".
159 =head2 umph AAF3A1D0CA1E304F | cclive
161 Download the playlist items using C<cclive(1)>.
163 =head2 umph -i AAF3A1D0CA1E304F | cclive
165 Same but choose which of the videos to download.
169 Exits 0 on success, otherwise 1.
173 =head2 ~/.umphrc - configuration file
175 Most of the options may be defined in the configuration file.
179 umph uses Getopt::ArgvFile Perl module to read the configuration file.
180 The module I<interpolates> the options from the configuration file.
181 Getopt::ArgvFile is described at:
182 http://search.cpan.org/perldoc?Getopt::ArgvFile
196 LWP::UserAgent reads the B<http_proxy> setting. See also C<--proxy> and
201 $ env http_proxy=http://foo:1234 umph AAF3A1D0CA1E304F
205 =head2 Unavailable feeds
207 umph cannot parse "private" lists.
209 =head2 "Play all" playlists
211 umph cannot currently handle these.
215 Home : http://umph.googlecode.com/
216 gitweb: http://repo.or.cz/w/umph.git
220 umph is free software, licensed under the GPLv3+.
224 Toni Gundogdu <legatvs at sign cpan org>