scrapper

package module
v0.0.0-...-8d4e9e8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

scrapper

Fetches the website contents and extracts readable data

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	OriginID   int
	ID         string
	Title      string
	URL        string
	RawContent []byte
	Article    *readability.Article
}

type Scrapper

type Scrapper struct {
	// contains filtered or unexported fields
}

func New

func New(httpCli *http.Client) *Scrapper

func (*Scrapper) Scrap

func (s *Scrapper) Scrap(ctx context.Context, bookmarks map[string]pocketcli.Bookmark) []*Item

Jump to

Keyboard shortcuts

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