scrape

package
v0.0.0-...-f58ca8c Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrimsonmagicNovelScraper

type CrimsonmagicNovelScraper struct {
	PrintCallback func(s string)
	// contains filtered or unexported fields
}

CrimsonmagicNovelScraper is a concrete strategy to scrape a novel from crimsonmagic.com

func NewCrimsonmagicScraper

func NewCrimsonmagicScraper() *CrimsonmagicNovelScraper

NewCrimsonmagicScraper creates a new crimsonmagic scraper

func (CrimsonmagicNovelScraper) GetAvailableChapters

func (c CrimsonmagicNovelScraper) GetAvailableChapters(url string) []book.Volume

GetAvailableChapters gets all available Volume information from a url

func (*CrimsonmagicNovelScraper) ScrapeChapter

func (c *CrimsonmagicNovelScraper) ScrapeChapter(chapterURL string, chapterNumber int) book.Chapter

ScrapeChapter Scrapes all chapters

type FullyBookedTLSScraper

type FullyBookedTLSScraper struct {
}

func NewFullyBookedTLSSCraper

func NewFullyBookedTLSSCraper() *FullyBookedTLSScraper

func (*FullyBookedTLSScraper) GetAvailableChapters

func (f *FullyBookedTLSScraper) GetAvailableChapters(url string) []book.Volume

func (*FullyBookedTLSScraper) ScrapeChapter

func (f *FullyBookedTLSScraper) ScrapeChapter(chapterURL string, chapterNumber int) book.Chapter

ScrapeChapter scrapes all chapters

type WuxiaWorldScraper

type WuxiaWorldScraper struct {
}

WuxiaWorldScraper scraping strategy for Wuxiaworld.com

func NewWuxiaScraper

func NewWuxiaScraper() *WuxiaWorldScraper

NewWuxiaScraper creates a new wuxia scraper strategy

func (*WuxiaWorldScraper) GetAvailableChapters

func (w *WuxiaWorldScraper) GetAvailableChapters(url string) []book.Volume

GetAvailableChapters returns an array with all possible chapters

func (*WuxiaWorldScraper) ScrapeChapter

func (w *WuxiaWorldScraper) ScrapeChapter(chapterURL string, chapterNumber int) book.Chapter

ScrapeChapter scrapes given chapter from wuxiaworld.com

Jump to

Keyboard shortcuts

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