scrape

package
v0.0.0-...-fb2d283 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Login    string `toml:"login"`
	Password string `toml:"password"`
	API      string `toml:"api"`
	WebSite  string `toml:"website"`
	Medium   string `toml:"medium"`
}

func NewConfig

func NewConfig() *Config

type Data

type Data struct {
	Text string `json:"text,omitempty"`
}

type Parser

type Parser interface {
	// contains filtered or unexported methods
}

func NewMediumResponse

func NewMediumResponse() Parser

func NewWordpressResponse

func NewWordpressResponse(config Config) Parser

type Scrape

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

func New

func New(config *Config) *Scrape

func (*Scrape) GetCountSymbols

func (s *Scrape) GetCountSymbols(url string) (int, error)

Jump to

Keyboard shortcuts

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