Avaland是一个命令行程序,可以从许多来源下载音乐。
avaland的Python项目详细描述
It requires the Python interpreter, version 3.5+, and it is not platform specific. It should work on your Unix box, on Windows or on macOS.
安装及注意事项
要安装它,请打开终端并键入:
pip3 install avaland
用法和示例
可以使用-h或--help标志找到用法:
^{pr2}$# Search tracks avaland "your search query" # Search and download first result avaland "your search query" --dl-first # Search with custom sources avaland "your search query" --sources radiojavan,bia2,rapfarsi # Set custom download path directory avaland "your search query" --path /foo/bar
入门(针对开发人员)
fromavaland.managerimportSourceManagerfromavaland.sourcesimport*manager=SourceManager()# register two sourcesmanager.register(Bia2)manager.register(RapFarsi)if__name__=='__main__':# search for a querysearch=manager.search("hello adele")print(search)# download first result from bia2download=search['bia2'].musics[0].download()print(download)
贡献
贡献使开源社区成为一个值得学习、启发和创造的地方。非常感谢您的任何贡献。在
- 叉开(https://github.com/dragon-born/avaland)
- 创建您的功能分支(
git checkout -b feature/newfeature
) - 提交更改(
git commit -am 'Add some amazing new feature'
) - 推送到分支(
git push origin feature/newfeature
) - 打开新的拉取请求
许可证
- 项目
标签: