crawler

package module
v0.0.0-...-0f1f09d Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PROXY_ADDR string = "http://127.0.0.1:1080"
View Source
const TIMEOUT = 30 * time.Second

const PROXY_ADDR string = ""

View Source
const TOTAL_TIMEOUT = 2 * time.Minute
View Source
const WAIT = 2 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type Comic

type Comic struct {
	ID           int
	EnglishName  string
	OriginalName string
	Parodies     []string
	Characters   []string
	Tags         []string
	Artists      []string
	Groups       []string
	Translated   bool
	Language     []string
	Categories   string
	DownloadInfo
}

func FetchPage

func FetchPage(page int) (comic []Comic)

获取整页本子信息

func NewComic

func NewComic(comicId int) (comic Comic)

根据ID获取本子信息

type DownloadInfo

type DownloadInfo struct {
	DownloadID  int
	DownloadLan string
	DownloadNum int
	DownloadExt string
}

func (DownloadInfo) Download

func (comic DownloadInfo) Download(dir string)

下载本子

type Tag

type Tag struct {
	Name  string
	Count int
	URL   string
}

Data structures

func FetchTags

func FetchTags() (tags []Tag)

获取所有标签

Jump to

Keyboard shortcuts

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