nvrscrapper

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

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSessionSchema

func CreateSessionSchema(db dbcore.Database)

func GetRequiredKeys

func GetRequiredKeys() []string

func Log

func Log(msg string)

func SetCookie

func SetCookie(session map[string]string) chromedp.Action

func ShowCookie

func ShowCookie(cookies []*network.Cookie)

Types

type ScrapData

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

func (*ScrapData) ScrapTarget

func (sd *ScrapData) ScrapTarget(ws SessionController)

type Scrapper

type Scrapper interface {
	ScrapTarget(SessionController)
}

func NewScrapData

func NewScrapData(url, selector string) Scrapper

type SessionController

type SessionController interface {
	HasLoginSession() bool

	GetLoginSession(dbcore.Database) map[string]map[string]string
	// contains filtered or unexported methods
}

func NewSession

func NewSession(url, id, pw string) SessionController

type WebsiteSession

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

func (*WebsiteSession) GetLoginSession

func (ws *WebsiteSession) GetLoginSession(db dbcore.Database) map[string]map[string]string

func (WebsiteSession) HasLoginSession

func (ws WebsiteSession) HasLoginSession() bool

Jump to

Keyboard shortcuts

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