Documentation
¶
Overview ¶
Package crawler 用于实现一些简单的爬虫工具
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChromeCookiesToStandard ¶
ChromeCookiesToStandard 将 chromedp 的 cookie 类型转为 Go 标准库的类型
Types ¶
type HTMLResult ¶
type HTMLResult struct {
Content string // HTML内容
Cookies []*network.Cookie // Cookie信息
Images map[string]struct{} // 引用的所有图片链接
}
HTMLResult 存储HTML内容和Cookie信息
type HyperLink ¶
type HyperLink struct {
Title string `json:"title" yaml:"title"`
URL string `json:"url" yaml:"url"`
}
HyperLink 表示一个超链接
func BingSearch ¶
BingSearch 执行必应搜索
Click to show internal directories.
Click to hide internal directories.