The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

VK::MP3 - searches for mp3 on vkontakte.ru, also known as vk.com.

SYNOPSIS

    use VK::MP3;
     
    my $vk = VK::MP3->new(login => 'user', password => 'secret');
    
    my $rslt = $vk->search('Nightwish');
    for (@{$rslt}) {
        # $_->{name}, $_->{duration}, $_->{link}
    }
    
    my $playlist = $vk->get_playlist;
    for (@{$playlist}) {
        # $_->{name}, $_->{duration}, $_->{link}
    }

DESCRIPTION

VK::MP3 helps you to find direct URL's of audio files on vk.com (via regular expressions and LWP).

This package also includes vkmp3 utility, which allows you download found mp3 (or all files from your playlist).

METHODS

new

    my $vk = VK::MP3->new(login => $login, password => $password)

Constructs a new VK::MP3 object and logs on vk.com. Throws exception in case of any error.

    my $rslt = $vk->search($query)

Results, found by $query.

get_playlist

    my $rslt = $vk->get_playlist()

Returns your playlist.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc VK::MP3

You can also look for information at:

SEE ALSO

VK, VKontakte::API, LWP::UserAgent.

AUTHOR

Alexandr Alexeev, <eax at cpan.org> (http://eax.me/)

COPYRIGHT

Copyright 2011-2012 by Alexandr Alexeev

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.