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 ¶
Types ¶
type GallaryInfo ¶
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)
Click to show internal directories.
Click to hide internal directories.