VK::MP3 - search for mp3 on vk.com
use VK::MP3; my $vk = VK::MP3->new(login => 'user', password => 'secret'); my $rslt = $vk->search('Nightwish'); for (@{$rslt}) { # $_->{name}, $_->{duration}, $_->{link} }
Really simple module, wich uses regular expressions and LWP.
new
my $vk = VK::MP3->new(login => $login, password => $password)
Constructs a new VK::MP3 object and login to vk.com. Throws exception in case of any error.
VK::MP3
search
my $rslt = $vk->search($query)
Results, found by $query.
VKontakte::API, LWP::UserAgent.
Alexandr A Alexeev, <afiskon@gmail.com>
Copyright 2011-2012 by Alexandr A Alexeev
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install VK::MP3, copy and paste the appropriate command in to your terminal.
cpanm
cpanm VK::MP3
CPAN shell
perl -MCPAN -e shell install VK::MP3
For more information on module installation, please visit the detailed CPAN module installation guide.