mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-23 15:18:12 +02:00
feat: add search_config module centralizing site definitions, proxy settings, user agents, and cookie banner selectors.
This commit is contained in:
1 parent
b8a56ca85d
commit
3813173e01
3 files changed
+138
-40
No files matched your search
@@ -66,6 +66,7 @@ SITE_CONFIGS = {
|
||||
"name": "Gifi",
|
||||
"search_url": "https://www.gifi.fr/resultat-recherche?q={query}",
|
||||
"product_selector": "a.link",
|
||||
"product_image_selector": "img.tile-image",
|
||||
"wait_selector": ".product-tile",
|
||||
"category": "Discount",
|
||||
"requires_proxy": False,
|
||||
@@ -74,6 +75,7 @@ SITE_CONFIGS = {
|
||||
"name": "Stokomani",
|
||||
"search_url": "https://www.stokomani.fr/search?options%5Bprefix%5D=last&q={query}",
|
||||
"product_selector": "a.reversed-link.block",
|
||||
"product_image_selector": "img.object-cover",
|
||||
"wait_selector": "a.reversed-link.block",
|
||||
"category": "Discount",
|
||||
"requires_proxy": False,
|
||||
@@ -82,6 +84,7 @@ SITE_CONFIGS = {
|
||||
"name": "Action",
|
||||
"search_url": "https://www.action.com/fr-fr/search/?q={query}",
|
||||
"product_selector": "a.group[href^='/fr-fr/p/']",
|
||||
"product_image_selector": "img[loading='lazy']",
|
||||
"wait_selector": "a.group[href^='/fr-fr/p/']",
|
||||
"category": "Discount",
|
||||
"requires_proxy": False,
|
||||
@@ -90,6 +93,7 @@ SITE_CONFIGS = {
|
||||
"name": "Cdiscount",
|
||||
"search_url": "https://www.cdiscount.com/search/10/{query}.html",
|
||||
"product_selector": "a.prdtBImg[href*='/f-'][href*='.html']",
|
||||
"product_image_selector": "img.prdtBImg",
|
||||
"wait_selector": ".prdtBILDetails, .product-list",
|
||||
"category": "E-commerce",
|
||||
"requires_proxy": False,
|
||||
@@ -99,6 +103,7 @@ SITE_CONFIGS = {
|
||||
"name": "Darty",
|
||||
"search_url": "https://www.darty.com/nav/recherche?text={query}",
|
||||
"product_selector": "a[href*='/nav/achat/'][href*='.html']",
|
||||
"product_image_selector": "img.product_img",
|
||||
"wait_selector": ".product-card, .product-list",
|
||||
"category": "Électronique",
|
||||
"requires_proxy": False,
|
||||
@@ -107,6 +112,7 @@ SITE_CONFIGS = {
|
||||
"name": "Boulanger",
|
||||
"search_url": "https://www.boulanger.com/resultats?tr={query}",
|
||||
"product_selector": "a[href*='/ref/'][href*='_']",
|
||||
"product_image_selector": "img.product-image",
|
||||
"wait_selector": ".product-list, .product-card",
|
||||
"category": "Électronique",
|
||||
"requires_proxy": False,
|
||||
@@ -115,6 +121,7 @@ SITE_CONFIGS = {
|
||||
"name": "Fnac",
|
||||
"search_url": "https://www.fnac.com/SearchResult/ResultList.aspx?Search={query}",
|
||||
"product_selector": "a.Article-title[href*='/a']",
|
||||
"product_image_selector": "img.Article-itemVisual",
|
||||
"wait_selector": ".Article-item, .Article-list",
|
||||
"category": "Culture & Tech",
|
||||
"requires_proxy": False,
|
||||
@@ -124,6 +131,7 @@ SITE_CONFIGS = {
|
||||
"name": "B&M",
|
||||
"search_url": "https://bmstores.fr/module/ambjolisearch/jolisearch?s={query}",
|
||||
"product_selector": "a.thumbnail.product-thumbnail",
|
||||
"product_image_selector": "img.product-thumbnail",
|
||||
"wait_selector": ".products, .product-miniature",
|
||||
"category": "Discount",
|
||||
"requires_proxy": False,
|
||||
@@ -132,6 +140,7 @@ SITE_CONFIGS = {
|
||||
"name": "Centrakor",
|
||||
"search_url": "https://www.centrakor.com/search/{query}",
|
||||
"product_selector": "a.link.link--block",
|
||||
"product_image_selector": "img.product-card__image",
|
||||
"wait_selector": ".product-list, .product-item",
|
||||
"category": "Discount",
|
||||
"requires_proxy": False,
|
||||
@@ -140,6 +149,7 @@ SITE_CONFIGS = {
|
||||
"name": "L'Incroyable",
|
||||
"search_url": "https://www.lincroyable.fr/recherche-query={query}/",
|
||||
"product_selector": "a[href^='/p']",
|
||||
"product_image_selector": "img.product-image",
|
||||
"wait_selector": ".product-item, .product-list",
|
||||
"category": "Discount",
|
||||
"requires_proxy": False,
|
||||
|
||||
Reference in new issue
Block a user