mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-21 22:28:11 +02:00
feat: Add abstract base parser with product result dataclass and implement Stokomani parser for search results.
This commit is contained in:
1 parent
ebe685fdf9
commit
078060f155
9 files changed
+136
-137
No files matched your search
@@ -81,6 +81,8 @@ class BaseParser(ABC):
|
||||
"""Convert relative URL to absolute URL"""
|
||||
if not url:
|
||||
return ""
|
||||
if url.startswith("//"):
|
||||
return "https:" + url
|
||||
if url.startswith("http"):
|
||||
return url
|
||||
return urljoin(base_url or self.base_url, url)
|
||||
|
||||
Reference in new issue
Block a user