datafetch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoogleMapsStores

func GoogleMapsStores() *googleMapsStoreCrawler

GoogleMapsStores returns a crawler for Google Maps store data. Returns nil if failed to initialize.

Types

type GoogleMapsStoreComment

type GoogleMapsStoreComment struct {
	Reviewer      string    `json:"reviewer"`
	ReviewerID    string    `json:"reviewer_id"`
	ReviewerState string    `json:"reviewer_state"`
	ReviewerLevel int       `json:"reviewer_level"`
	CommentTime   string    `json:"comment_time"`
	CommentDate   time.Time `json:"comment_date"`
	Content       string    `json:"content"`
	Rating        int       `json:"rating"`
}

GoogleMapsStoreComment is a struct for Google Maps store comments.

type GoogleMapsStoreCommentSortBy

type GoogleMapsStoreCommentSortBy uint8
const (
	// SortByRelevance 按相關性排序
	SortByRelevance GoogleMapsStoreCommentSortBy = 1
	// SortByNewest 按最新排序
	SortByNewest GoogleMapsStoreCommentSortBy = 2
	// SortByRating 按評分排序
	SortByHighestRating GoogleMapsStoreCommentSortBy = 3
	// SortByLowestRating 按最低評分排序
	SortByLowestRating GoogleMapsStoreCommentSortBy = 4
)

type GoogleMapsStoreCommentsFetchingOptions

type GoogleMapsStoreCommentsFetchingOptions struct {
	SortBy             GoogleMapsStoreCommentSortBy
	MaxWaitingInterval uint
}

Jump to

Keyboard shortcuts

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