honcrawler

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GallaryUrl string = Host + `/albums-index-page-%d.html`
View Source
const Host = `https://www.wnacg.com`

Some constant for the spider

View Source
const ImgsPerPage int = 12
View Source
const UserAgent string = `Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0`

Variables

View Source
var Coordinator = coordinator{
	// contains filtered or unexported fields
}

Functions

func Download

func Download(hd *HonDetail)

func SaveTag

func SaveTag(tag string)

Types

type GallaryInfo

type GallaryInfo struct {
	HonUrl string
	Title  string
}

typical HonUrl /photos-index-aid-169728.html

func GenGallaryInfos

func GenGallaryInfos(page int) (infos []*GallaryInfo)

type HonDetail

type HonDetail struct {
	Tags    []string
	Title   string
	PageNum int      // 可以计算翻页次数
	Images  []string // 按顺序的本子页面Url
}

func GenHonDetails

func GenHonDetails(g *GallaryInfo) (details *HonDetail)

Jump to

Keyboard shortcuts

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