Because I am not used to using the Himalaya APP, because the content is too messy and cannot be played on a single loop, etc., I want to download it and listen to it on other players.
Batch download all audio files in the Himalayas album
To prevent sensitive information such as cookie
from leaking, please copy the config.js
file and rename it to config-local.js
Configure the config-local.js
file and fill in cookie
and albumId
.
key
AES key, fixed value does not need to be modified
cookie
are obtained through the console
albumId
album id is obtained from the url, see the figure below for details
mediaType
download file type, supports the following 4 types
M4A_64 [默认]
M4A_24
MP3_64
MP3_32
output
download directory, default is ./output
How to get the album id:
$ yarn $ yarn start
or
$ npm install $ npm run start