A straightforward JS script created for downloading all photos from the album on VK. and is running by CLI.
It needs an authorization token that provides an access to your profile photos (and to your groups if you download photos from the private group).
You need have node version 18.0+ to be installed on your desktop globally.
- Open
params.jsin the root directory. Fill these values:
- By default, your
TOKENmust provide only photos access. But it won't be enough if you want to download a photo from a private group. So you also need a groups permission. ALBUM_IDis album's id (for example, we have a link "https//vk.com/album12345_67890". The "67890" is album's id.).USER_IDis user's id. There is a "12345" in the link above.VK_API_VERSIONis current version of VK API (you can find it here).BATCH-SIZEis size of one request to the VK API (it's upper limited by 1000).DELAYis a delay (ms) between requests for downloading image by the url. Recommended value is no less than 100.
- Run the main script by the command:
node main.js- Links of found album's photos will be added to the
urls.txtfile in a root directory. And all photos in JPG format will be saved in the folder/downloads/photos/[album_id].
vk-albums-download
│
├── service/
├── downloads/
│ └── photos/...
│ └── [album_id]
│
└── urls.txt
└── main.js
└── params.js