Go library for downloading content across multiple platforms
Source
•
Releases
•
Documentation
dlkitgo is a Golang library that can download, search, info etc. from popular platforms and third-party. Completely free.
package main
import (
"fmt"
"github.com/Beesonn/dlkitgo"
)
func main() {
client := dlkitgo.NewClient()
url := "https://open.spotify.com/track/0B6ZJaS3I891FP8Ewx43Oh"
stream, err := client.Spotify.Stream(url)
if err != nil {
fmt.Printf("ERROR: Stream failed: %v", err)
return
}
if len(stream.Source) == 0 {
fmt.Println("ERROR: No stream sources available")
return
}
fmt.Printf("Artists: %s\n", stream.Source[0].Artist)
fmt.Printf("Title: %s\n", stream.Source[0].Title)
fmt.Printf("Image: %s\n", stream.Source[0].Image)
fmt.Printf("Stream URL: %s\n", stream.Source[0].URL)
}go get github.com/Beesonn/dlkitgoCheck out our examples for different platforms:
If you would like to see an example for a platform that is not listed here, you can request it by opening an issue.
Make a new issue with the name of the provider on the title, as well as a link to the provider in the body paragraph.
We welcome contributions! Feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b new) - Commit your changes (
git commit -m 'Add some new') - Push to the branch (
git push origin new) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any problems or have questions, please file an issue on the GitHub issue.