Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonScraper ¶
type JsonScraper[T any] struct { Source string GetUrl func(number string) (url string) GetData func(data *T) (metadata *scraper.Metadata, err error) GetCover func(data *T) (coverUrl string) GetRename func(originalname string, metadata *scraper.Metadata) (canonicalName string, shouldRename bool) NumberRegexp *regexp.Regexp }
T: the response data type, e.g. a struct.
func (*JsonScraper[T]) Pre ¶
func (js *JsonScraper[T]) Pre(dirname string) bool
Click to show internal directories.
Click to hide internal directories.