scraper

package
v0.0.0-...-52dbf3a Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: LGPL-3.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

View Source
const BaseURL = "https://play.google.com/store/apps"

BaseURL of Google Play Store

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Country  string
	Discount bool
	Language string
	Number   int
	PriceMin float64
	PriceMax float64
	ScoreMin float64
	ScoreMax float64
}

Options of scraper

type Results

type Results []*app.App

Results of operation

func (*Results) Append

func (results *Results) Append(res ...app.App)

Append result

type Scraper

type Scraper struct {
	Results Results
	// contains filtered or unexported fields
}

Scraper instance

func New

func New(url string, options *Options) *Scraper

New return new Scraper instance

func (*Scraper) LoadMoreDetails

func (scraper *Scraper) LoadMoreDetails(maxWorkers int) (errors []error)

LoadMoreDetails for all results (in concurrency)

func (*Scraper) ParseResult

func (scraper *Scraper) ParseResult(data string, paths ...string)

func (*Scraper) Run

func (scraper *Scraper) Run() error

Run scraping

Jump to

Keyboard shortcuts

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