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} } my $playlist = $vk->get_playlist; for (@{$playlist}) { # $_->{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, which allows you download found mp3 (or all files from your playlist).
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.
get_playlist
my $rslt = $vk->get_playlist()
Returns your playlist.
You can find documentation for this module with the perldoc command.
perldoc VK::MP3
You can also look for information at:
GitHub
https://github.com/afiskon/p5-vk-mp3
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/VK-MP3
CPAN Ratings
http://cpanratings.perl.org/d/VK-MP3
VK, VKontakte::API, LWP::UserAgent.
Aleksander Alekseev, <eax at cpan.org> (http://eax.me/)
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.
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.