Scraper
omniread.xlsx.scraper
Summary
XLSX scraper for OmniRead.
This module defines the scraper responsible for acquiring raw Office Open XML spreadsheet content from a backing store via a configured client.
The scraper does not interpret or parse the acquired bytes; it wraps them in
the canonical Content model.
Classes
XlsxScraper
Scraper for xlsx spreadsheet documents.
Notes
Responsibilities:
1 2 3 | |
Constraints:
1 2 | |
Initialize the XLSX scraper.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client |
BaseXlsxClient
|
Client responsible for retrieving raw spreadsheet bytes. |
required |
Functions
fetch
Fetch an xlsx document from the given source.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
source |
Any
|
Identifier of the spreadsheet source as understood by the configured client. |
required |
metadata |
Optional[Mapping[str, Any]]
|
Optional metadata to attach to the returned content. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
Content |
Content
|
A |
Raises:
| Type | Description |
|---|---|
Exception
|
Retrieval-specific errors raised by the client. |