genius

package
v0.1.44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Genius

type Genius struct {
	// contains filtered or unexported fields
}

Genius Provider.

func New

func New(accessToken string) *Genius

New creates an instance of genius provider.

func (*Genius) Fetch

func (g *Genius) Fetch(artist, song string, client http.Client) string

Fetch Searches Genius API based on Artist and Song. Then parses the result, to get a song and obtaines the url and scrapes it to return the lyrics.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL