feat: Add abstract base parser with product result dataclass and implement Stokomani parser for search results.

This commit is contained in:
Michael committed 2025-11-30 19:03:26 +01:00
1 parent ebe685fdf9
commit 078060f155
9 files changed
+136 -137

No files matched your search

+3
View File
@@ -46,6 +46,9 @@ class StokomaniParser(BaseParser):
if not img_url:
img_url = self.extract_image_url(prev_a)
if img_url:
img_url = self.make_absolute_url(img_url)
# Price: Look for text node after the link
price = None
next_sibling = link.next_sibling