crawler

package
v0.0.0-...-5236661 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICrawler

type ICrawler interface {
	LatestChapter(Novel) (string, string)
	AddNovels([]Novel)
	GetNovels() []Novel
}

ICrawler - crawl novels

type Novel

type Novel struct {
	Name     string
	IndexURL string
}

Novel represent a novel

type PiaoTianCrawler

type PiaoTianCrawler struct {
	Hostname string
	// contains filtered or unexported fields
}

PiaoTianCrawler - Get latest update from https://www.ptwxz.com/

func (*PiaoTianCrawler) AddNovels

func (c *PiaoTianCrawler) AddNovels(novels []Novel)

AddNovels add novels

func (*PiaoTianCrawler) GetNovels

func (c *PiaoTianCrawler) GetNovels() []Novel

GetNovels get novels

func (*PiaoTianCrawler) LatestChapter

func (c *PiaoTianCrawler) LatestChapter(novel Novel) (chapterName, chapterURL string)

LatestChapter - Get the latest chapter

Jump to

Keyboard shortcuts

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