hvdb

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package hvdb provides a Go API for accessing HVDB information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Work

type Work struct {
	RJCode       dlsite.RJCode
	Title        string
	EnglishTitle string
	Circle       string
	Tags         []string
	CVs          []string
	SFW          bool
}

Work holds information about a work. If information for a field is missing, it will be the zero value.

func Fetch

func Fetch(c dlsite.RJCode) (*Work, error)

Fetch fetches the Work by parsing the corresponding HVDB page. Errors from the HTTP request or from parsing the HTML of the page are returned, but errors from parsing specific information from the page are not returned. Not all fields will be present for all works.

Jump to

Keyboard shortcuts

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