From 7f85a9764cff3101bd6db0d52280fb7173d0e299 Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Sat, 29 Nov 2025 11:25:49 +0100 Subject: [PATCH] feat: Add Stokomani raw HTML data and new search configuration. --- app/core/search_config.py | 11 +- stokomani_raw.html | 32156 ++++++++++++++++++++++++++++++++++++ 2 files changed, 32165 insertions(+), 2 deletions(-) create mode 100644 stokomani_raw.html diff --git a/app/core/search_config.py b/app/core/search_config.py index eec1084..4b98be9 100644 --- a/app/core/search_config.py +++ b/app/core/search_config.py @@ -70,8 +70,8 @@ SITE_CONFIGS = { "stokomani.fr": { "name": "Stokomani", "search_url": "https://www.stokomani.fr/search?options%5Bprefix%5D=last&q={query}", - "product_selector": "a[href^='/products/']", - "wait_selector": "a[href^='/products/']", + "product_selector": ".product-card__title a", + "wait_selector": ".product-card__title a", "category": "Discount", "requires_proxy": False, }, @@ -203,4 +203,11 @@ COOKIE_ACCEPT_SELECTORS = [ ".mod-shops .close", "#shops-modal .close-button", ".ui-dialog-titlebar-close", + # Action + "#cc-accept", + ".cc-btn-accept", + "button[data-testid='uc-accept-all-button']", + "button:has-text('Accepter tout')", + "button:has-text('Accepter')", + "button:has-text('Refuser')", ] diff --git a/stokomani_raw.html b/stokomani_raw.html new file mode 100644 index 0000000..596b11f --- /dev/null +++ b/stokomani_raw.html @@ -0,0 +1,32156 @@ + + + + + + + + + + + + Recherche : 31 résultats trouvés pour « chaise » – Stokomani + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Passer au contenu +
+ +
+ +
+
+ + +
+
+
+ + +
+
+
+ +
+ + +
+
+
+ +
+
+ +
+
+
+
+ +
+
+
+ + + +
+ + +
+
+ + + + + + + +
+
+ + + + +
+ + +
+
+ +
+
+ + + + + + + + + + + + + + + +
+ + + + + + + +
+ + +
+ + +
+