VK::MP3 - searches for mp3 on vkontakte.ru, also known as vk.com.
use VK::MP3; my $vk = VK::MP3->new(login => 'user', password => 'secret'); my $rslt = $vk->search('Nightwish'); for (@{$rslt}) { # $_->{name}, $_->{duration}, $_->{link} }
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, that allows you to download found mp3.
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.
VK::MP3
search
my $rslt = $vk->search($query)
Results, found by $query.
You can find documentation for this module with the perldoc command.
perldoc VK::MP3
You can also look for information at:
BitBucket
https://bitbucket.org/afiskon/pl-vkmp3
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/VK-MP3
CPAN Ratings
http://cpanratings.perl.org/d/VK-MP3
VK, VKontakte::API, LWP::UserAgent.
Alexandr Alexeev, <eax at cpan.org> (http://eax.me/)
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.
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.