一条命令行全网音乐随你下

sexyfeifan
2023-07-26
点 赞
3
热 度
249
评 论
0

声明,我只是有需要把音乐放入MP3设备的需求,并不是白嫖,各大音乐平台已充值会员。

guanguans/music-dl

https://github.com/guanguans/music-dl

Music Searcher and Downloader. - 音乐搜索下载器。

环境要求

  • PHP >= 8.0

如果你的计算机没有PHP,macOS下推荐使用 Homebrew 进行安装。

将以下命令粘贴至终端进行安装Homebrew 。

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

以上需要科学网络环境,正常网络环境下安装缓慢,或可使用过内镜像安装。

可参考:https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/

在安装Homebrew 后,用一下命令行安装PHP。

$ brew install php

安装

下载 music-dl 文件。

$ cd /xxxx/Music-dl
# 此处的文件夹位置以及文件夹名字随意,可以在终端中输入cd后拖拽你想安装到的文件夹到终端,终端会自动生成路径。

全局安装

$ composer global require guanguans/music-dl

当前目录安装

$ composer create-project guanguans/music-dl

$ brew install composer #这里遇到了一个坑,需要安装一下 composer

使用

命令行上执行该文件。

$ ./music-dl

sexyfeifan@sexy-Mac-Studio music-dl % ./music-dl

     __  __           _        _____  _
    |  \/  |         (_)      |  __ \| |
    | \  / |_   _ ___ _  ___  | |  | | |
    | |\/| | | | / __| |/ __| | |  | | |
    | |  | | |_| \__ \ | (__  | |__| | |____
    |_|  |_|\__,_|___/_|\___| |_____/|______| unreleased

 请输入关键字如:一个短篇  腰乐队  Yesterday once more,或按 Ctrl+C 退出程序 [腰乐队]:
 > 
╰─ ./music-dl --help                                                                                                      ─╯
Description:
  Search and download songs.

Usage:
  music [options] [--] [<sources>...]

Arguments:
  sources               Specify the sources(tencent、netease、kugou) of the song

Options:
  -d, --dir[=DIR]       The directory where the songs are saved
  -c, --concurrent      Search for songs concurrently
  -h, --help            Display help for the given command. When no command is given display help for the music command
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
      --env[=ENV]       The environment the command should run under
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
╰─ ./music-dl list                                                      ─╯

  Music DL  v3.3.1

  USAGE: music-dl <command> [options] [arguments]

  completion  Dump the shell completion script
  inspire     Display an inspiring quote
  music       Search and download songs.
  self-update Allows to self-update a build application
  thanks      Thanks for using this tool.


ovnrain/netease-music-cloud-uploader

https://github.com/ovnrain/netease-music-cloud-uploader

网易云音乐云盘上传

解决 Mac 端网易云音乐无法上传到音乐云盘问题

下载安装

前往 https://github.com/ovnrain/netease-music-cloud-uploader/releases 页面,下载 .dmg

# x64: Intel 芯片
# aarch64: Apple 芯片


用键盘敲击出的不只是字符,更是一段段生活的剪影、一个个心底的梦想。希望我的文字能像一束光,在您阅读的瞬间,照亮某个角落,带来一丝温暖与共鸣。

sexyfeifan

站长

具有版权性

请您在转载、复制时注明本文 作者、链接及内容来源信息。 若涉及转载第三方内容,还需一同注明。

具有时效性

目录

欢迎来到ONEISALL,为您导航全站动态

33 文章数
5 分类数
4 评论数
14标签数
最近评论
sexyfeifan

sexyfeifan


sexyfeifan

sexyfeifan


嘻嘻🙃

访问统计