- 第三方音乐下载(个人学习使用)
使用pip安装(推荐,注意前面有一个py):
$ pip3 install pymusic-dl
手动安装(最新):
$ git clone https://github.com/0xHJK/music-dl.git
$ cd music-dl
$ python3 setup.py install
不安装直接运行:
$ git clone https://github.com/0xHJK/music-dl.git
$ cd music-dl
$ pip3 install -r requirements.txt
$ ./music-dl
# 或 python3 music-dl
$ music-dl --help
Usage: music-dl [OPTIONS]
Search and download music from netease, qq, kugou, baidu and xiami.
Example: music-dl -k "XXX"
Options:
--version Show the version and exit.
-k, --keyword TEXT 搜索关键字,歌名和歌手同时输入可以提高匹配(如 空帆船 朴树)
-u, --url TEXT 通过指定的歌曲URL下载音乐
-p, --playlist TEXT 通过指定的歌单URL下载音乐
-s, --source TEXT Supported music source: qq netease kugou baidu
-n, --number INTEGER Number of search results
-o, --outdir TEXT Output directory
-x, --proxy TEXT Proxy (e.g. http://127.0.0.1:1087)
-v, --verbose Verbose mode
--lyrics 同时下载歌词
--cover 同时下载封面
--nomerge 不对搜索结果列表排序和去重
--help Show this message and exit.
备注:可能是因为安装问题,在我的Mac上 需要以下方式才能运行:
在终端 先进入到 music-dl 所在的 目录,然后再 运行 使用指令:
$ cd music-dl
$python music-dl [options]
2.家里WiFi 密码显示
Install using pip
##text-shell-session
$ python3 -m pip install --user wifi-password
Install using git
$ git clone https://github.com/sdushantha/wifi-password
$ cd wifi-password
$ python3 setup.py install
Usage
text-shell-session
$ wifi-password --help
usage: wifi_password [options]
optional arguments:
-h, --help show this help message and exit
--show-qr, -show Show a ASCII QR code onto the terminal/console
--save-qr [PATH], -save [PATH]
Create the QR code and save it as an image
--ssid SSID, -s SSID Specify a SSID that you have previously connected to
--version Show version number
今天偶然发现 直接在终端使用 music-dl 或 wifi-password不生效的原因是:
- 我是用 gitclone的方式手动下载的,所以需要先cd 到对应的文件夹用python 指令来执行对应的工具文件。
2.而且的电脑上安装了多个版本的python,导致python 映射的Path 地址有问题(通过 brew doctor 检查来修复的)
现在可以直接在终端 输入 music-dl 或 wifi-password 来使用这2个小工具啦