NAME

WWW::YouTube::Download - Get flv video from YouTube

SYNOPSIS

use WWW::YouTube::Download qw( get_id save );
my $url = "http://www.youtube.com/watch?v=xxxxxxxxxxx";
my $id  = get_id($url);
my $saved_name = save($id);
# Specify name of video file.
save($id, "video.flv");

# For debug option.
$WWW::YouTube::Download::IS_RIOT = 1;

DESCRIPTION

This module allows you to download vide from YouTube.

ID is necessary to download the video. The ID can find from URL of video's link.

The URL of YouTube is "http://www.youtube.com/".

EXPORT

None by default.

get_id("http://www.youtube.com/watch?v=xxxxxxxxxxx")

This function parses URL and returns ID.

save($id)

This function saves the video. Returns file name that was saved.

If second parameter is passed, it is used to saving file name.

SEE ALSO

AUTHOR

Kuniyoshi Kouji, <kuniyoshi.kouji@indigo.plala.or.jp>

COPYRIGHT AND LICENSE

Copyright (C) 2009 by Kuniyoshi Kouji

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.