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

Aleksander Alekseev, <eax at cpan.org> (http://eax.me/)

COPYRIGHT

Copyright 2011-2016 by Aleksander Alekseev

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