scraper

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION = "v0.4.3"

VERSION is the version of the application automatically managed by pre-commit githook

Variables

This section is empty.

Functions

This section is empty.

Types

type AnimeKhor added in v0.4.2

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

func NewAnimeKhor added in v0.4.2

func NewAnimeKhor(log *zap.SugaredLogger, col *colly.Collector) *AnimeKhor

func (*AnimeKhor) Parse added in v0.4.2

func (m *AnimeKhor) Parse(url string) []*Result

func (*AnimeKhor) Read added in v0.4.2

func (m *AnimeKhor) Read(url string) []string

type AnimeXin added in v0.3.4

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

func NewAnimeXin added in v0.3.4

func NewAnimeXin(log *zap.SugaredLogger, col *colly.Collector) *AnimeXin

func (*AnimeXin) Parse added in v0.3.4

func (m *AnimeXin) Parse(url string) []*Result

func (*AnimeXin) Read added in v0.3.4

func (m *AnimeXin) Read(url string) []string

type DonghuaStream added in v0.4.2

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

func NewDonghuaStream added in v0.4.2

func NewDonghuaStream(log *zap.SugaredLogger, col *colly.Collector) *DonghuaStream

func (*DonghuaStream) Parse added in v0.4.2

func (m *DonghuaStream) Parse(url string) []*Result

func (*DonghuaStream) Read added in v0.4.2

func (m *DonghuaStream) Read(url string) []string

func (*DonghuaStream) ReadPage added in v0.4.2

func (m *DonghuaStream) ReadPage(url string) []string

type JhdAnime added in v0.3.4

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

func NewJhdAnime added in v0.3.4

func NewJhdAnime(log *zap.SugaredLogger, col *colly.Collector) *JhdAnime

func (*JhdAnime) Parse added in v0.3.4

func (m *JhdAnime) Parse(url string) []*Result

func (*JhdAnime) Read added in v0.3.4

func (m *JhdAnime) Read(url string) []string

type Metube

type Metube struct {
	URL string `json:"url" xml:"url"`
}

func NewMetube

func NewMetube(url string) *Metube

func (*Metube) Download

func (m *Metube) Download(name, url string) error

type MetubeDownload

type MetubeDownload struct {
	URL       string `json:"url"`
	AutoStart bool   `json:"auto_start"`
	Quality   string `json:"quality"`
	Format    string `json:"format"`
	Name      string `json:"custom_name_prefix"`
}

type MetubeResponse

type MetubeResponse struct {
	Status  string `json:"status"`
	Message string `json:"msg"`
}

type MyAnime

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

func NewMyAnime

func NewMyAnime(log *zap.SugaredLogger, col *colly.Collector) *MyAnime

func (*MyAnime) Parse added in v0.3.4

func (m *MyAnime) Parse(url string) []*Result

func (*MyAnime) Read

func (m *MyAnime) Read(url string) []string

type NarulDonghua added in v0.4.2

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

func NewNarulDonghua added in v0.4.2

func NewNarulDonghua(log *zap.SugaredLogger, col *colly.Collector) *NarulDonghua

func (*NarulDonghua) Parse added in v0.4.2

func (m *NarulDonghua) Parse(url string) []*Result

func (*NarulDonghua) Read added in v0.4.2

func (m *NarulDonghua) Read(url string) []string

type Result added in v0.3.4

type Result struct {
	Title   string
	Season  int
	Episode int
	URL     string
}

type Scraper added in v0.3.4

type Scraper interface {
	Read(url string) []string
	Parse(url string) []*Result
}

func New added in v0.3.4

func New(name string, log *zap.SugaredLogger) Scraper

Jump to

Keyboard shortcuts

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