spider

package
v0.0.0-...-f212b5f Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResult

func GetResult(w http.ResponseWriter, r *http.Request)

GetResult 爬取结果控制器

Types

type Resp

type Resp struct {
	Status string    `json:"status", omitempty`
	Result []*Result `json:"result", omitempty`
	Msg    string    `json:"msg", omitempty`
}

Resp 响应

type Result

type Result struct {
	Title string `json:"title"`
	URL   string `json:"url"`
	Desc  string `json:"desc"`
}

Result 结果

func Spider

func Spider(url, proxy string) []*Result

Spider 爬虫

Jump to

Keyboard shortcuts

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