Crawler

package
v0.0.0-...-97b0a9d Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ResultByPage = 10

Variables

This section is empty.

Functions

func WebDriver

func WebDriver() (selenium.WebDriver, error)

Types

type DocRow

type DocRow struct {
	Name  string
	Title string
	Field string
	Type  string
	Unit  string
	Year  string
	Link  string
}

func Craw

func Craw(driver selenium.WebDriver, mainLink string, followupLink string, xpathResult string, initTable int) ([]DocRow, error)

func GetData

func GetData(driver selenium.WebDriver, document *html.Node, pageAmount int, followupLink string, initTable int) ([]DocRow, error)

Jump to

Keyboard shortcuts

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