web

package
v0.0.0-...-f6c7da3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObtainBuilding

func ObtainBuilding(doc *goquery.Document) *model.Building

ObtainBuilding method obtains building details from a document

func ObtainBuildingURLs

func ObtainBuildingURLs(doc *goquery.Document) (urls []string)

ObtainBuildingURLs method obtains building page URLs from a document

func ObtainStreetURLs

func ObtainStreetURLs(doc *goquery.Document) (urls []string)

ObtainStreetURLs method obtains street page URLs from a document

Types

type Client

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

Client is the type that implements specific web-client functionality

func NewClient

func NewClient(log *log.Log) *Client

NewClient method that constructs a new instance of the web-client

func (*Client) TryGetDoc

func (c *Client) TryGetDoc(url string) (*goquery.Document, error)

TryGetDoc method tries to get a document on a specified resource address

Jump to

Keyboard shortcuts

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