scraper

package
v0.0.0-...-2551f53 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewToonilyScraper

func NewToonilyScraper(collector *colly.Collector, startPage string, delayTime time.Duration) *toonilyScraper

Types

type Chapter

type Chapter struct {
	Name          string `json:"name"`
	URL           string `json:"url"`
	PublishedDate string `json:"published_date"`
}

type Comic

type Comic struct {
	Name        string             `json:"name"`
	Rate        string             `json:"rate"`
	RatingCount string             `json:"rating_count"`
	Views       string             `json:"views"`
	URL         string             `json:"url"`
	AltName     string             `json:"alt_name"`
	Status      string             `json:"status"`
	Summary     string             `json:"summary"`
	Publisher   map[string]string  `json:"publisher"`
	Authors     map[string]string  `json:"authors"`
	Artists     map[string]string  `json:"artists"`
	Genres      map[string]string  `json:"genres"`
	Tags        map[string]string  `json:"tags"`
	Chapters    map[string]Chapter `json:"chapters"`
}

type Scraper

type Scraper interface {
	Scrape() error
}

func NewScraper

func NewScraper(page constant.AnimePage, isConcurrent bool, allowRevisit bool, timeout time.Duration, delayTime time.Duration) Scraper

Jump to

Keyboard shortcuts

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