一个python程序,它使用beautifulsoup和youtube dl从youtube下载一首歌
getsong的Python项目详细描述
一个python程序,它使用beautifulsoup和youtube dl下载 来自YouTube的歌曲
结果将存储在当前工作目录中。
用法
usage: getsong [-h] [-y] [-m] [-p] [-u] [-q] [-i ID] [--artist ARTIST] [--title TITLE] [--album ALBUM] term positional arguments: term Youtube search term optional arguments: -h, --help show this help message and exit -y, --yes Skip prompt -m, --musicvideo Get first result for <term>, not '<term> lyrics' -p, --print-path Prints path to file to stdout, so you can pipe it to a command or play the file or something -u, --print-url Prints URL to stdout without downloading the audio track -q, --quiet Hides youtube-dl output. Still shows y/n prompt if not hidden by -y -i ID, --id ID Skip search, lookup ID. Use "" for the search term instead --artist ARTIST Uses Mutagen to write the artist information to the output file --title TITLE Uses Mutagen to write the title information to the output file --album ALBUM Uses Mutagen to write the album information to the output file Track numbering currently unsupported by mutagen
安装
通过pip:
pip3 install getsong
或者:
- 克隆存储库,cd getsong
- 运行python3 setup.py install或pip3 install -e
- ^建议{tt5}$(或avconv)将容器固定在 下载的音频。