zlibraryparse

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package zlibraryparse parses Z-Library search and book-detail responses (JSON and HTML fallbacks) into structured data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsoluteURL

func AbsoluteURL(baseURL, path string) string

func DetailDownloadFromJSON

func DetailDownloadFromJSON(body []byte) (string, error)

func ErrorMessage

func ErrorMessage(obj map[string]any) string

func FindDownloadLinkInHTML

func FindDownloadLinkInHTML(baseURL string, body []byte) string

func JSONTruthy

func JSONTruthy(v any, defaultValue bool) bool

Types

type Book

type Book struct {
	ID          int
	Hash        string
	Title       string
	Author      string
	Extension   string
	Filesize    int64
	Language    string
	Year        any
	Pages       int
	Cover       string
	Description string
	DL          string
}

func BooksFromJSON

func BooksFromJSON(body []byte) ([]Book, error)

Jump to

Keyboard shortcuts

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