videos

package
v0.0.0-...-bc5efde Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(reader io.Reader)

func ParseActresses

func ParseActresses(document goquery.Document, url string) []string

*

  • 解析女優列表資訊

Types

type DmmVideo

type DmmVideo struct {
	DmmVideoHeader
	DmmVideoBody
}

type DmmVideoBody

type DmmVideoBody struct {
	VodDate     string          `json:"vod_date"`
	PublishDate string          `json:"pulish_date"`
	Duration    int             `json:"duration"`
	Directors   []string        `json:"directors"`
	Series      []string        `json:"series"`
	Makers      []string        `json:"makers"`
	Labels      []string        `json:"labels"`
	Tags        []string        `json:"tags"`
	Actresses   []string        `json:"actresses"`
	Images      []DmmVideoImage `json:"images"`
}

func ParsePage

func ParsePage(PageUrl string) DmmVideoBody

*

  • 解析網頁內容

type DmmVideoHeader

type DmmVideoHeader struct {
	No    string `json:"no"`
	Title string `json:"title"`
	Url   string `json:"url"`
	Thumb string `json:"thumb"`
}

type DmmVideoImage

type DmmVideoImage struct {
	Thumb   string `json:"thumb"`
	Preview string `json:"preview"`
}

type DmmVideosList

type DmmVideosList struct {
	Videos []DmmVideo `json:"videos"`
}

Jump to

Keyboard shortcuts

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