This Ruby gem allows you to download music files from lizhi.fm from command line.
gem install lizhi-fm
lizhi download <yaml>
Your yaml file defines the list of music you wanna download and has to follow certain formats. Below is an example of it:
headers:
Referer: http://www.lizhi.fm/box
resources:
- name: 01-01.mp3
url: http://cdn5.lizhi.fm/audio/2016/10/25/2564306333261015558_hd.mp3
- name: 01-02.mp3
url: http://cdn5.lizhi.fm/audio/2015/11/11/2499655571385248262_hd.mp3
After running this command, all the files list by url
will be downloaded to your current diretory.
This code is free to use under the terms of the MIT license.