fetcher

package
v0.0.0-...-eaaf835 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(dir string, options ...FetchOption) error

Fetch scrape target

Types

type FetchOption

type FetchOption func(*fetchOptions)

func LimitPage

func LimitPage(p int) FetchOption

func OutputJSON

func OutputJSON(dir string) FetchOption

type JSONWriter

type JSONWriter struct {
	OutputDir string
}

func (JSONWriter) Write

func (j JSONWriter) Write(works []model.Work) error

type Writer

type Writer interface {
	Write(works []model.Work) error
}

Jump to

Keyboard shortcuts

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