genius

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StripNonAlphanumeric added in v0.1.12

func StripNonAlphanumeric(source string) string

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) (string, error)

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