Skip to content

cschomburg/gozelle

Repository files navigation

gozelle

API Documentation MIT License

A Go package to interact with the JSON API of What.CD / the private tracker framework Gazelle.

A list of all available methods can be found at the official Gazelle documentation. Currently only a limited set of functions for searching/downloading is implemented. For everything else there is the general (c *Client) Do().

Install

go get "github.com/xconstruct/gozelle"

Example

g := gozelle.New()
r, err := g.Login("https://what.cd", "user", "pass")
fmt.Println("Hi", r.Response.Username)

r, err = g.SearchTorrents("favorite artist", 0, &gozelle.TorrentsFilter{
	Format: "FLAC",
})

fmt.Println("download link:", r.Response.Results[0].Torrents[0].TorrentId)

About

A Go package to interact with the Gazelle API / What.CD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published