dlsite

package
v2.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package dlsite provides a Go API for accessing DLSite information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Work

type Work struct {
	Code        codes.RJCode
	Title       string
	Circle      string
	Series      string
	Seiyuu      []string
	WorkFormats []string
	Description string
}

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

func FetchWork

func FetchWork(c codes.RJCode) (*Work, error)

FetchWork returns the Work for the codes.RJCode by parsing the corresponding DLSite 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, like Series.

Jump to

Keyboard shortcuts

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