goodreads

package
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LargeImageURL added in v0.13.0

func LargeImageURL(url string) string

LargeImageURL because the API returns the "medium" version of the cover url. This generates the "large" URL.

Types

type GoodReads

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

GoodReads retrieves information from goodreads.com.

func New

func New(key string) *GoodReads

New GoodReads struct.

func (GoodReads) GetBook

func (g GoodReads) GetBook(id string) (*ebook.Metadata, error)

GetBook returns a GoodreadsBook from its Goodreads ID.

func (GoodReads) GetBookID added in v0.13.0

func (g GoodReads) GetBookID(metadata *ebook.Metadata) (string, error)

func (GoodReads) GetBookIDByISBN

func (g GoodReads) GetBookIDByISBN(isbn string) (string, error)

GetBookIDByISBN gets a Goodreads ID from an ISBN.

func (GoodReads) GetBookIDByQuery

func (g GoodReads) GetBookIDByQuery(author, title string) (string, error)

GetBookIDByQuery gets a Goodreads ID from a query.

func (GoodReads) GetBookInfoByISBN added in v0.10.0

func (g GoodReads) GetBookInfoByISBN(isbn string) (string, error)

GetBookInfoByISBN gets a Goodreads information from an ISBN.

func (GoodReads) GetBookSpecificClean added in v0.15.0

func (g GoodReads) GetBookSpecificClean(id string, forbiddenTags []string, tagAliases map[string][]string) (*ebook.Metadata, error)

GetBook returns a GoodreadsBook from its Goodreads ID.

Jump to

Keyboard shortcuts

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