gelbooru

package
v0.0.0-...-eb674b3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GELBOORU_IMAGE_SEARCH string = `https://www.gelbooru.com/index.php?page=dapi&s=post&q=index&json=1&tags=%s&pid=%d`
	GELBOORU_IMAGE_STORE  string = `./store/%s/`
	GELBOORU_IMAGE_SIZE   int    = 256
)

Variables

This section is empty.

Functions

func Get

func Get(group string, q string, pages int) error

Types

type GelbooruAttribute

type GelbooruAttribute struct {
	Limit  int `json:"limit"`
	Offset int `json:"offset"`
	Count  int `json:"count"`
}

type GelbooruPost

type GelbooruPost struct {
	Identifier int    `json:"id"`
	Preview    string `json:"preview_url"`
}

type GelbooruPosts

type GelbooruPosts []GelbooruPost

type GelbooruSearch

type GelbooruSearch struct {
	Attributes GelbooruAttribute `json:"@attributes"`
	Posts      GelbooruPosts     `json:"post"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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