Crawler

package
v0.0.0-...-5850f4c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Company   = "//*[@id=\"listagem\"]/div/div/div/div"
	InitXpath = "//*[@id=\"listagem\"]/div/div/div/div["
	EndXpath  = "]/div/section/div[2]/div[2]/div/div[1]/div/div/div/div"
	Wait      = "//*[@id=\"jet-popup-5641\"]/div/div[2]/div[1]/div[2]/div/section"

	EndXpathData = "]/div/section/div[2]/div[2]/div/div[2]/div/div/div"
)
View Source
const ShowMore = "//*[@id=\"mais\"]/div/div/a/span/span[2]"

Variables

This section is empty.

Functions

func LoadWebPage

func LoadWebPage(driver selenium.WebDriver)

func SeleniumWebDriver

func SeleniumWebDriver() (selenium.WebDriver, error)

Types

type CompanyStruct

type CompanyStruct struct {
	Name         string
	GeneralInfo  string
	Service      string
	Founders     string
	PersonalData string
	Address      string
	Site         string
	Phone        string
	Mail         string
}

func Craw

func Craw(driver selenium.WebDriver) ([]CompanyStruct, error)

Jump to

Keyboard shortcuts

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