Script for downloading music from vkontakte

A quick search of corresponding python script doesn’t give results. In post on habra link is broken. So i decided to write my own bicycle, it is avaliable here.

Launch (needs installed python interpreter):


Tested on python 2.6 and 2.7. No external libraries required.


Script checks saved access_token. If it doesn’t exists or expired, then page with authorisation is opened in browser. After confirmation you will be redirected to… It is needed to copy this url and paste to script console. After that downloading is started. If audio track is present on disk - no downloading happens for it.

You account info will be requested by application with app_id = 3358129. It is possible to create your own Standalone-application with audio access at And replace APP_ID with yours.

Script avaliable here:

Script code: