https://github.com/hex0cter/lizhi-fm
Download music from http://www.lizhi.fm/ in one go!
https://github.com/hex0cter/lizhi-fm
Last synced: over 1 year ago
JSON representation
Download music from http://www.lizhi.fm/ in one go!
- Host: GitHub
- URL: https://github.com/hex0cter/lizhi-fm
- Owner: hex0cter
- License: mit
- Created: 2018-01-06T15:32:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T20:44:48.000Z (over 8 years ago)
- Last Synced: 2025-02-06T14:41:51.473Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# lizhi-fm
[](https://badge.fury.io/rb/lizhi-fm)
[](https://travis-ci.org/hex0cter/lizhi-fm)
This Ruby gem allows you to download music files from lizhi.fm from command line.
## How to install it
```bash
gem install lizhi-fm
```
## How to download music files
```bash
lizhi download
```
Your yaml file defines the list of music you wanna download and has to follow certain formats. Below is an example of it:
```yaml
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.
## License
This code is free to use under the terms of the MIT license.