Epson¶
flowtask.components.ProductInfo.parsers.epson
¶
EpsonParser
¶
Bases: ParserBase
Parser for Epson product information.
Extracts product details from Epson's website.
extract_model_code
¶
Extract model code from URL using the regex pattern and clean it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
URL to extract model code from |
required |
Returns:
| Type | Description |
|---|---|
Optional[str]
|
Cleaned model code or None if not found |
parse
async
¶
Parse product information from an Epson URL.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
Epson product URL |
required |
search_term
|
str
|
Original search term |
required |
retailer
|
str
|
Optional retailer information |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dictionary with product information |