Samsung¶
flowtask.components.ProductInfo.parsers.samsung
¶
SamsungParser
¶
Bases: ParserBase
Parser for Samsung product information.
Extracts product details from Samsung's website using Selenium.
get_product_urls
¶
Extract relevant product URLs from search results.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
search_results
|
List[Dict[str, str]]
|
List of search result dictionaries |
required |
max_urls
|
int
|
Maximum number of URLs to return (default: 1) |
1
|
Returns:
| Type | Description |
|---|---|
List[str]
|
List of product URLs that match the Samsung product pattern |
parse
async
¶
Parse product information from a Samsung URL using Selenium.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
Samsung product URL |
required |
search_term
|
str
|
Original search term |
required |
retailer
|
Optional[str]
|
Optional retailer information (not used for Samsung) |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dictionary with product information |