0
Files
yandex-music-download/README.md
2020-04-14 19:55:31 +03:00

74 lines
2.2 KiB
Markdown

Yandex Music Downloader
=====================
[![Perl](https://img.shields.io/badge/perl-green.svg)](https://www.perl.org/) [![License](https://img.shields.io/badge/license-MIT-red.svg)](https://raw.githubusercontent.com/kaimi-io/yandex-music-download/master/LICENSE)
This is a simple command line Perl script for downloading music from Yandex Music (http://music.yandex.ru).
Origin of the script is the following article: https://kaimi.io/2013/11/yandex-music-downloader/
## Usage
```bat
ya.pl [-adkptu] [long options...]
-p --playlist playlist id to download
-k --kind playlist kind (eg. ya-playlist, music-blog,
music-partners, etc.)
-a --album album to download
-t --track track to download (album id must be specified)
-u --url download by URL
-d --dir download path (current direcotry will be used by
default)
--proxy HTTP-proxy (format: 1.2.3.4:8888)
--exclude skip tracks specified in file
--include download only tracks specified in file
--delay delay between downloads (in seconds)
--mobile use mobile API
--auth authorization header (for HQ music if subscription
is active)
--bitrate bitrate (eg. 64, 128, 192, 320)
Bitrate 320 is available only when subscription is active
and only via mobile API for now (be sure to specify Authorization header value)
--debug print debug info during work
--help print usage
--include and --exclude options use weak match i.e. ~/$term/
Example:
ya.pl -p 123 -k ya-playlist
ya.pl -a 123
ya.pl -a 123 -t 321
ya.pl -u https://music.yandex.ru/album/215690
ya.pl -u https://music.yandex.ru/album/215688/track/1710808
ya.pl -u https://music.yandex.ru/users/ya.playlist/playlists/1257
```
## Dependencies
### Linux
```
Digest::MD5
File::Copy
File::Spec
File::Temp
Getopt::Long::Descriptive
HTML::Entities
HTTP::Cookies
JSON::PP
LWP::Protocol::https
LWP::UserAgent
MP3::Tag
Mozilla::CA
Term::ANSIColor
```
### Windows
Above and
```
Win32::API
Win32::Console
Win32API::File
```
For further assistance don't hesitate to ask for help in GitHub issues or on the blog: https://kaimi.io