cata_log_hub.providers.lidl module
- class cata_log_hub.providers.lidl.LidlDeutschland[source]
Bases:
ProviderProvider class for the current german Lidl catalog.
- uid: str = 'lidl-de'
A unique identifier for this provider class. Must not be changed after definition.
- name: str = 'Lidl'
The name of this catalog provider.
- description: str = 'Lidl Angebote'
The user-facing description for this provider
- url: str = 'https://www.lidl.de/c/online-prospekte/s10005610'
The url of this catalog provider
- region
alias of
Germany
- first_page_number: int = 0
The number of the first page in the providers api
- class Configuration[source]
Bases:
Configuration- region_id: str
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- overview_url_template = 'https://endpoints.leaflets.schwarz/v4/overview/?region_id={region_id}&client_locale=lidl/{language_code_lower}-{language_code_upper}'
- _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:
- class cata_log_hub.providers.lidl.LidlDeutschlandPreview[source]
Bases:
Preview,LidlDeutschlandProvider class for Lidl preview catalog for next week.
- uid: str = 'lidl-de-preview'
A unique identifier for this provider class. Must not be changed after definition.
- name: str = 'Lidl-Vorschau'
The name of this catalog provider.
- description: str = 'Lidl Angebote nächste Woche'
The user-facing description for this provider
- _get_preview_timedelta()[source]
Get the dynamic timedelta between the relevant datetime and the relevant datetime of the preview.
- Return type:
- Returns:
The preview timedelta.
- class cata_log_hub.providers.lidl.LidlDeutschlandPrepreview[source]
Bases:
LidlDeutschlandPreviewProvider class for Lidl preview catalog for second-next week.
- uid: str = 'lidl-de-preview-2'
A unique identifier for this provider class. Must not be changed after definition.
- name: str = 'Lidl-Vorvorschau'
The name of this catalog provider.
- description: str = 'Lidl Angebote übernächste Woche'
The user-facing description for this provider
- _get_preview_timedelta()[source]
Get the dynamic timedelta between the relevant datetime and the relevant datetime of the preview.
- Return type:
- Returns:
The preview timedelta.
- class cata_log_hub.providers.lidl.LidlItalia[source]
Bases:
LidlDeutschlandProvider class for the current italian Lidl catalog.
- uid: str = 'lidl-it'
A unique identifier for this provider class. Must not be changed after definition.
- region
alias of
Italy
- description: str = 'Offerte Lidl'
The user-facing description for this provider