documentparser

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDirectDownloadLinkFromCurrent

func GetDirectDownloadLinkFromCurrent(link string) string

func GetDirectDownloadLinkFromLegacy

func GetDirectDownloadLinkFromLegacy(link string, linkType string) string

Types

type CurrentDocumentParser

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

func NewCurrentDocumentParser

func NewCurrentDocumentParser(document *goquery.Document) *CurrentDocumentParser

func NewCurrentDocumentParserFromReader

func NewCurrentDocumentParserFromReader(r io.Reader) *CurrentDocumentParser

func (*CurrentDocumentParser) GetBookDataFromDocument

func (cdp *CurrentDocumentParser) GetBookDataFromDocument() []book.Book
func (cdp *CurrentDocumentParser) GetDirectDownloadLink(selectedBook book.Book) string

type DocumentParser

type DocumentParser interface {
	GetBookDataFromDocument() []book.Book
	GetDownloadLinkFromDocument() (string, bool)
}

type LegacyDocumentParser

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

func NewLegacyDocumentParser

func NewLegacyDocumentParser(document *goquery.Document) *LegacyDocumentParser

func NewLegacyDocumentParserFromReader

func NewLegacyDocumentParserFromReader(r io.Reader) *LegacyDocumentParser

func (*LegacyDocumentParser) GetBookDataFromDocument

func (ldp *LegacyDocumentParser) GetBookDataFromDocument() []book.Book

Jump to

Keyboard shortcuts

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