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
}
Click to show internal directories.
Click to hide internal directories.