scraper

package
v0.0.0-...-42aad13 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mods []Mod

Functions

func Request

func Request(url string, client *http.Client) (*http.Response, error)

Types

type File

type File struct {
	URL       string `json:"url"`
	Extension string `json:"ext"`
	MD5       string `json:"md5"`
}

type Mod

type Mod struct {
	Name string
	Func ModFunc
}

type ModFunc

type ModFunc func(tags, page string, client *http.Client) ([]Post, error)

type Post

type Post struct {
	ID   uint64 `json:"id"`
	File File   `json:"file"`
}

Jump to

Keyboard shortcuts

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