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
Click to show internal directories.
Click to hide internal directories.