gmaps

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Title        string
	Category     string
	Address      string
	OpenHours    string
	WebSite      string
	Phone        string
	PlusCode     string
	ReviewCount  int
	ReviewRating float64
	Latitude     float64
	Longtitude   float64
}

func EntryFromGoQuery

func EntryFromGoQuery(doc *goquery.Document) (Entry, error)

func (*Entry) CsvHeaders

func (e *Entry) CsvHeaders() []string

func (*Entry) CsvRow

func (e *Entry) CsvRow() []string

func (*Entry) Validate

func (e *Entry) Validate() error

type GmapJob

type GmapJob struct {
	scrapemate.Job

	MaxDepth int
	LangCode string
}

func NewGmapJob

func NewGmapJob(langCode, query string, maxDepth int) *GmapJob

func (*GmapJob) BrowserActions

func (j *GmapJob) BrowserActions(ctx context.Context, page playwright.Page) scrapemate.Response

func (*GmapJob) Process

func (j *GmapJob) Process(ctx context.Context, resp *scrapemate.Response) (any, []scrapemate.IJob, error)

func (*GmapJob) UseInResults

func (j *GmapJob) UseInResults() bool

type PlaceJob

type PlaceJob struct {
	scrapemate.Job
}

func NewPlaceJob

func NewPlaceJob(langCode, u string) *PlaceJob

func (*PlaceJob) BrowserActions

func (j *PlaceJob) BrowserActions(_ context.Context, page playwright.Page) scrapemate.Response

func (*PlaceJob) Process

func (j *PlaceJob) Process(_ context.Context, resp *scrapemate.Response) (any, []scrapemate.IJob, error)

Jump to

Keyboard shortcuts

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