crawl

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrawlOptions

type CrawlOptions struct {
	DestPath       string
	Proxy          string
	DownloadMagent bool
	StarCode       string
	PrefixCode     string
	PrefixMinNo    int
	PrefixMaxNo    int
}

type JavMovie

type JavMovie struct {
	Code           string `json:"code"`
	Title          string `json:"title"`
	Cover          string `json:"cover"`
	PublishDate    string `json:"publish_date"`
	Length         string `json:"length"`
	Director       string `json:"director"`
	ProduceCompany string `json:"produce_company"`
	PublishCompany string `json:"publish_company"`
	Series         string `json:"series"`
	// Stars          []string `json:"stars"`
	Stars string `json:"stars"`
}

type JavMovieMagnet

type JavMovieMagnet struct {
	Name     string  `json:"name"`
	Link     string  `json:"link"`
	Size     float64 `json:"size"`
	Subtitle bool    `json:"subtitle"`
	HD       bool    `json:"hd"`
}

type JavbusCrawl added in v0.0.10

type JavbusCrawl interface {
	StartCrawlJavbusMovie(code string) error
	// 通过番号前缀爬取对应的电影信息
	StartCrawlJavbusMovieByPrefix() error
	// 通过演员ID爬取对应的电影信息
	StartCrawlJavbusMovieByStar(starCode string) error
	// 访问文件夹下的视频列表爬取电影信息
	StartCrawlJavbusMovieByFilepath(inputPath string) error
	// contains filtered or unexported methods
}

func NewJavbusCrawl added in v0.0.10

func NewJavbusCrawl(logger *zap.Logger, option CrawlOptions) (JavbusCrawl, error)

Jump to

Keyboard shortcuts

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