Documentation ¶
Index ¶
Constants ¶
View Source
const BROWSE_HOMEPAGE_URL_FORMAT = "%s/browse"
View Source
const BROWSE_JSON_URL_FORMAT = "%s/_next/data/%s/en/browse.json"
View Source
const CATEGORY_URL_FORMAT = "%s/_next/data/%s/en/browse/%s.json"
View Source
const COLES_ID_PREFIX = "coles_id_"
View Source
const DB_SCHEMA_VERSION = 1
View Source
const DEFAULT_API_VERSION = "20240827.02_v4.7.7"
View Source
const DEFAULT_LISTING_PAGE_CHECK_INTERVAL = 1 * time.Minute
View Source
const PRODUCTS_PER_PAGE = 48
View Source
const SCRAPE_TRAP_STRING = "Pardon Our Interruption"
Variables ¶
View Source
var ErrHitScrapeTrap = errors.New("caught in a scrape trap")
Functions ¶
This section is empty.
Types ¶
type Coles ¶
type Coles struct {
// contains filtered or unexported fields
}
Coles satisfies the ProductInfoGetter interface.
func (*Coles) GetSharedProductsUpdatedAfter ¶
GetSharedProductsUpdatedAfter provides a list of product IDs that have been updated since the given time
func (*Coles) GetTotalProductCount ¶
GetTotalProductCount returns the total number of products in the database.
Click to show internal directories.
Click to hide internal directories.