spider

package
v0.0.0-...-1357d99 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TYPE        = "type"
	TITLE       = "title"
	DESCRIPTION = "description"
	URL         = "url"
	IMAGE       = "image"
)

OGP meta tags

View Source
const (
	CARD    = "card"
	SITE    = "site"
	PHOTO   = "photo"
	SUMMARY = "summary"
	LARGE   = "summary_large_image"
	DEFAULT = "https://tyn-imarket.com/public/default-image.png"
)

Twitter card meta tags

Variables

This section is empty.

Functions

This section is empty.

Types

type Crawler

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

Crawler struct

func (*Crawler) Run

func (c *Crawler) Run(url string)

Run is

type Parser

type Parser struct {
}

Parser is

type Spider

type Spider struct {
}

Spider is

func (*Spider) Loop

func (s *Spider) Loop()

Loop is

func (*Spider) Run

func (s *Spider) Run(query url.Values) []*model.Ogp

Run is

Jump to

Keyboard shortcuts

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