yoinker

package
v0.0.0-...-f58ca8c Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IExportStrategy

type IExportStrategy interface {
	Export(metadata book.Metadata, path string, chapters []book.Chapter) string
}

IExportStrategy interface to provide document export functionality

type IScrapingStrategy

type IScrapingStrategy interface {
	// ScrapeChapter scrapes a chapter with given url
	ScrapeChapter(chapterURL string, chapterNumber int) book.Chapter

	//GetAvailableChapters returns an array with all possible chapters
	GetAvailableChapters(url string) []book.Volume
}

IScrapingStrategy defines an interface to scrape from an arbitrary website

type IYoinkerFactory

type IYoinkerFactory interface {
	GetYoinker() IYoinkerManager
}

IYoinkerFactory defines an interface to crate a yoinker factory

func NewYoinkerFactory

func NewYoinkerFactory(scraper IScrapingStrategy, exporter IExportStrategy) IYoinkerFactory

NewYoinkerFactory creates a new factory instance

type IYoinkerManager

type IYoinkerManager interface {
	StartYoink(metadata book.Metadata, exportPath string) string
	GetAvailableVolumes(url string, website string) []book.Volume
}

IYoinkerManager Provides Functionality to yoink Webnovels and Webtoons

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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