cata_log_hub.providers.action module
- class cata_log_hub.providers.action.Action[source]
Bases:
ProviderProvider class for Action current catalog.
- uid: str = 'action-de'
A unique identifier for this provider class. Must not be changed after definition.
- name: str = 'Action'
The name of this catalog provider.
- url: str = 'https://www.action.com/de-de/prospekt/'
The url of this catalog provider
- region
alias of
Germany
- description: str = 'Action Katalog'
The user-facing description for this provider
- first_page_number: int = 0
The number of the first page in the providers api
- overview_url_format = 'https://de.publications.action.com/action-week-{week_number:02}-{valid_since:%Y}/spreads.json'
- _get_catalog_data()[source]
Get and store the data for this providers catalog. Can be passed if no data beside the pagenumber is required to fetch pages from the provider.
- Return type:
- _get_page(page_number)[source]
Get one page from the provider.
- Parameters:
page_number (
PageNumber) – The number of the page in the numbering of the provider.- Return type:
- Returns:
The downloaded page in bytes.
- _get_valid_since()[source]
Get the datetime since which this providers catalog is valid.
- Return type:
- _get_valid_until()[source]
Get the datetime until which this providers catalog is valid.
- Return type: