scraper

package
v0.0.0-...-75be81d Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadPage

type DownloadPage struct {
	fn.Function[DownloadPage, DownloadPageInput, DownloadPageOutput]
}

func (DownloadPage) Call

func (f DownloadPage) Call(ctx *fn.Context, input DownloadPageInput) (output DownloadPageOutput, err error)

type DownloadPageInput

type DownloadPageInput struct {
	Url future.Future[string]
}

type DownloadPageOutput

type DownloadPageOutput struct {
	Page future.Future[[]byte]
}

type ExtractImages

func (ExtractImages) Call

func (f ExtractImages) Call(ctx *fn.Context, input ExtractImagesInput) (output ExtractImagesOutput, err error)

type ExtractImagesInput

type ExtractImagesInput struct {
	Page future.Future[[]byte]
}

type ExtractImagesOutput

type ExtractImagesOutput struct {
	Images future.Future[[]string]
}

type ParsePage

type ParsePage struct {
	fn.Function[ParsePage, ParsePageInput, ParsePageOutput]
}

func (ParsePage) Call

func (f ParsePage) Call(ctx *fn.Context, input ParsePageInput) (output ParsePageOutput, err error)

type ParsePageInput

type ParsePageInput struct {
	Page future.Future[[]byte]
}

type ParsePageOutput

type ParsePageOutput struct {
	Result future.Future[map[string]any]
}

type Scrape

type Scrape struct {
	fn.Function[Scrape, ScrapeInput, ScrapeOutput]
}

func (Scrape) Call

func (f Scrape) Call(ctx *fn.Context, input ScrapeInput) (output ScrapeOutput, err error)

type ScrapeInput

type ScrapeInput struct {
	Url future.Future[string]
}

type ScrapeOutput

type ScrapeOutput struct {
	Result future.Future[map[string]any]
	Images future.Future[[]string]
}

Jump to

Keyboard shortcuts

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