spider

package
v0.0.0-...-2004213 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIOBT   = "miobt"
	DMHY    = "dmhy"
	NYAA    = "nyaa"
	BANGUMI = "bangumi"
)

Variables

This section is empty.

Functions

func TrimAnimeName

func TrimAnimeName(name string) string

Types

type BangumiSpider

type BangumiSpider struct {
	BaseSpider
}

func (*BangumiSpider) ExtractData

func (m *BangumiSpider) ExtractData(ctx context.Context, webContent string) ([]*spider.AnimeMagnet, error)

type BaseSpider

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

type DmhySpider

type DmhySpider struct {
	BaseSpider
}

func (*DmhySpider) ExtractData

func (m *DmhySpider) ExtractData(ctx context.Context, webContent string) ([]*spider.AnimeMagnet, error)

type MiobtSpider

type MiobtSpider struct {
	BaseSpider
}

func (*MiobtSpider) ExtractData

func (m *MiobtSpider) ExtractData(ctx context.Context, webContent string) ([]*spider.AnimeMagnet, error)

type NyaaSpider

type NyaaSpider struct {
	BaseSpider
}

func (*NyaaSpider) ExtractData

func (m *NyaaSpider) ExtractData(ctx context.Context, webContent string) ([]*spider.AnimeMagnet, error)

type SpiderInterface

type SpiderInterface interface {
	ExtractData(ctx context.Context, webContent string) ([]*spider.AnimeMagnet, error)
}

func NewSpider

func NewSpider(spiderConf *conf.SpiderConfig, logger log.Logger) SpiderInterface

Jump to

Keyboard shortcuts

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