scraper

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) *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 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) *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) *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 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