United Statesschollz/getsong
Download any song mp3 with no dependencies except ffmpeg
getsong
This is a simple library that utilizes the rylio/ytdl YouTube downloader and ffmpeg to get almost any m4a of a song that you want to listen to. I wrote this so I could download m4as of my favorite Spotify playlists.
Disclaimer: Downloading copyright songs may be illegal in your country. This tool is for educational purposes only and was created only to show how YouTubes's API can be used to download music. Please support the artists by buying their music.
Install
go get -u github.com/schollz/getsong/...
Usage
The aim of this library to have a low (or zero) false positive rate, so it works best when the entered title + artist are spelled correctly.
Use as a program
$ getsong 'Getting in Tune' 'The Who'
Downloading 'Getting in Tune by The Who (W6-3rnD7FSc).webm'...
524289 / 524289 [==========================] 100.00%
...converting to m4a...
Downloaded 'Getting in Tune by The Who (W6-3rnD7FSc).m4a'
Use as a library
// download "True" by "Spandau Ballet"
fname, err := getsong.GetSong("True", "Spandau Ballet")
if err == nil {
fmt.Printf("Downloaded '%s'\n", fname)
}
Contributing
Pull requests are welcome. Feel free to...
- Revise documentation
- Add new features
- Fix bugs
- Suggest improvements
License
MIT
Similar Projects
Discover other similar projects and AI models.
Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
Kotlin Multiplatform Music Downloader, Supports Spotify / Gaana / Youtube Music / Jio Saavn / SoundCloud.
🎧 Open source music streaming app! Available for both desktop & mobile!
利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.