the vmd — console application for downloading music from vk.com

you Have vk.com have a favorite musical group or friends that your musical tastes coincide? I have, Yes. And I wanted to have a current local copy of the music of these groups and friends to listen to it, for example in the car, the phone, player or anywhere else. Thus was born the idea of creating a console open source applications vmd (vkontakte music downloader), which I promised to lay out on github that this post. The program is multiplatform, works on linux, windows and mac os x. Download binary builds for these operating systems can be downloaded at home page project. Under jabracada learn how vmd to use and some technical details.

How to use vmd?


To use the program need to get api_id, clicking on the link: http://vk.com/apps.php?act=add. If you have api_id of the existing application can use it.

After this we need to create a file with the session.
Use the following command to generate it:

the
$ vmd --login <your email or phone number> --password <your password> --api_id <app ID>


vmd does not store your password on hard disk, using a file with the session for authorization. This command should be run only once!

You can now download music.

Downloading music users

If the user page vk.com/genaev or vk.com/id2302071, in order to download his music, you need to run:

the
 $ vmd --uid genaev
$ vmd 2302071 --uid

Downloading music from groups

If the page group vk.com/teamfly, it must run the
the
 $ vmd --gid teamfly


Download music is happening in the current directory. It makes sense to copy the vmd somewhere in PATH.

Synchronization occurs automatically by file name, if the track is already downloaded, the second time it will not be downloaded. The names of the files match the pattern: by navaneeta-id_трека.mp3. Often vk.com the file is called as a hit, including the names of all sorts of smileys, hearts and other debris. To remove it was written by the clean_name().

ToDo


I'm glad program module VK::App proved to be useful not only me. Already made is not a big ToDo list.

the
    the
  • Add the ability to download the play sheets and albums
  • the
  • to add the ability to search for music
  • the
  • Add ability to download in a multithreaded mode
  • the
  • to Add support for proxy
  • the
  • Add the ability to download from multiple users or multiple groups
  • the
  • creating a GUI interface in QT


I will appreciate any fabcam!

UPDs
new version of vmd fixed wrong encoding of some tracks.

recommendation (option available since version 0.03):
This mode gives you the ability to download, in a sense, the "crossing" of audio recordings of your friends. In fact, our friends are likely to have similar musical tastes. It is possible to dump audio recordings of all the friends and download only those that meet at least 2 or 3 friends. Changing the ratio can be obtained by different sets. Example. If we want to download all the mp3 which intersect at least 5 times:
the
$ vmd rec --5
Thank you abrowser spiff for the idea!

Mac version available for download
Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

Why I left Google Zurich

2000 3000 icons ready — become a sponsor! (the table of orders)

New web-interface for statistics and listen to the calls for IP PBX Asterisk