Commit Graph
94 Commits
Author SHA1 Message Date
Michael 0ccc2fd9fc feat: add login page with authentication functionality and favicons 2025-11-23 17:30:57 +01:00
Michael 8962853de8 feat: Introduce a comprehensive settings page for managing notification profiles, AI configuration, scraper behavior, and job schedules. 2025-11-23 17:13:35 +01:00
Michael 184763b2da feat: Implement product search orchestration service combining direct site search, light scraping, and Browserless/AI fallback. 2025-11-23 16:26:13 +01:00
Michael e551927327 feat: Add direct e-commerce search service using Playwright/Browserless with site-specific configurations. 2025-11-23 16:06:16 +01:00
Michael 9a6ebf6f06 feat: Implement direct product search service using Browserless for e-commerce sites and add a search flow verification script. 2025-11-23 15:45:09 +01:00
Michael 7c8da4a337 feat: Implement dashboard delete confirmation UI, add a text utility, and install frontend dependencies. 2025-11-23 15:18:04 +01:00
Michael cb9cdfcca0 feat: Implement search functionality with new frontend page, backend router, service, and database migration. 2025-11-23 14:54:22 +01:00
Michael 45bb055566 feat: Add initial frontend application entry point, dependencies, and test configuration. 2025-11-23 14:51:42 +01:00
Michael fb447677b2 feat: Add AI service, database migration, French locale, and Marquee UI component. 2025-11-23 14:45:15 +01:00
Michael 8d124bf0f8 feat: Add initial database migration and UI label component, alongside frontend dependency installation. 2025-11-23 14:37:35 +01:00
LogiFlow 5884aa2378 Merge pull request #37 from R0m1k3/claude/hardcode-website-urls-01QrWZK7suQnuBrxYgK1r5JC
fix: Rename use-auth.js to use-auth.jsx for JSX support
2025-11-23 10:25:41 +01:00
Claude 1dcb2849e2 fix: Rename use-auth.js to use-auth.jsx for JSX support 2025-11-23 09:24:05 +00:00
LogiFlow f21484d996 Merge pull request #36 from R0m1k3/claude/hardcode-website-urls-01QrWZK7suQnuBrxYgK1r5JC
fix: Improve product selectors and URL filtering
2025-11-23 10:21:32 +01:00
Claude 1dd6d4dae1 feat: Add authentication system and admin panel
- Add User model with authentication
- Create JWT-based auth service
- Add login page with admin/admin default credentials
- Create admin panel with user management, settings, and site configuration
- Move settings to admin section (admin only)
- Change search page from multi-site checkboxes to single site selector
- Add logout functionality to layout
- Protect routes with authentication
2025-11-23 09:15:56 +00:00
Claude 5e5f49a5f6 fix: Improve Amazon search reliability and URL validation
Amazon selectors simplified:
- Remove overly restrictive [href*='/ref='] requirement
- Use simpler data-asin and s-result-item selectors
- Wait for [data-component-type='s-search-result']

URL validation improved (_is_non_product_url):
- For Amazon: ONLY accept URLs containing /dp/ or /gp/product/
- Reject Amazon URLs with /ref=cs_ (error page links)
- Reject Amazon redirect URLs without product paths
- Add patterns: /503, /error, /robot, /captcha
- Add French site patterns: /application, /courses

Navigation link filter improvements:
- Add more Amazon error patterns: /ref=nb_, /ref=sr_
- Add /ap/signin, /gp/yourstore, /gp/cart
2025-11-23 09:02:51 +00:00
Claude 0a786b1c49 fix: Improve product selectors and URL filtering
Product selectors improvements:
- E.Leclerc: Target only /fp/ links, exclude promo/promotion URLs
- Auchan: Target only /p/*.html product links
- Carrefour: Target only /p/*.html product links
- Amazon FR/US: Target only /dp/ links with ASIN, exclude logo/nav links

URL filtering improvements (_is_navigation_link):
- Add French site-specific patterns: /application, /courses, /ep-
- Add promo/offers exclusions: /promo/, /offres/, /promotions/
- Add service pages: /magasin, /services/, /recettes
- Add Amazon-specific: /ref=cs_, /logo, /nav_, /gp/help
- Add generic exclusions: /home, /newsletter, /wishlist

These changes ensure only actual product URLs are captured,
not navigation links, app pages, or promotional banners.
2025-11-23 08:43:21 +00:00
LogiFlow fb4176b71f Merge pull request #35 from R0m1k3/claude/hardcode-website-urls-01QrWZK7suQnuBrxYgK1r5JC
fix: Correct search URLs for French supermarkets
2025-11-23 09:30:14 +01:00
Claude d2f95f5508 fix: Correct search URLs for French supermarkets
- E.Leclerc: Fix URL from /cat/recherche~q= to /recherche?q=
  (the old URL was showing promotions instead of search results)
- Auchan: Keep correct URL /recherche?text=
- Carrefour: Keep correct URL /s?q=
- Amazon FR/US: Simplify configuration, remove complex anti-bot
  headers that were causing more issues than helping
- Simplify browserless search function (remove special Amazon handling)
2025-11-23 08:29:28 +00:00
LogiFlow 356c5a6ef4 Merge pull request #34 from R0m1k3/claude/hardcode-website-urls-01QrWZK7suQnuBrxYgK1r5JC
Claude/hardcode website urls 01 qr wzk7su qnu brx yg k1r5 jc
2025-11-23 09:16:57 +01:00
Claude 00d3aa9f1e fix: Improve Amazon search with anti-bot bypass measures
- Add special handling for Amazon (FR and US):
  - Custom User-Agent and HTTP headers mimicking real browser
  - Don't block images (Amazon uses them for bot detection)
  - Extra wait time and scroll for lazy-loaded content
  - Timezone set to Europe/Paris
  - Additional Sec-Fetch-* headers for authenticity
- Update Amazon product selectors with more robust patterns:
  - a.a-link-normal for direct product links
  - [data-asin]:not([data-asin='']) for filtering empty ASINs
  - .s-main-slot targeting main search results
- Add &ref=nb_sb_noss parameter to avoid redirects
2025-11-23 08:15:29 +00:00
Claude 3293b5d58a fix: Improve French price extraction and cookie handling
AI Schema:
- Improve extraction prompt for French e-commerce pages
- Add specific instructions for French price format (comma decimal, space thousands)
- Add French stock status terms (Ajouter au panier, Disponible, etc.)
- Fix price normalization to handle French format:
  - "12,99" -> 12.99
  - "1 234,56" -> 1234.56
  - "1.234,56" -> 1234.56

Scraper Service:
- Add comprehensive cookie/popup selectors for French sites:
  - E.Leclerc, Auchan, Carrefour (OneTrust, Didomi)
  - Cdiscount (#footer_tc_privacy_button_2)
  - Boulanger (.bcom-consent-accept-all)
  - Gifi, Centrakor (Magento cookie buttons)
  - PrestaShop sites (Stokomani, B&M)
- Add common CMP platform selectors
- Add French text-based selectors for cookie acceptance
2025-11-23 08:12:43 +00:00
LogiFlow 2484ec66a3 Merge pull request #33 from R0m1k3/claude/hardcode-website-urls-01QrWZK7suQnuBrxYgK1r5JC
fix: Improve French e-commerce sites configuration
2025-11-23 09:06:31 +01:00
Claude ee40ae68fc fix: Improve French e-commerce sites configuration
- Change default currency from USD to EUR for all French sites
- Update AI extraction prompt to use EUR by default
- Fix E.Leclerc search URL pattern
- Improve product selectors for Auchan, Carrefour, Amazon France
- Add Amazon France language parameter for better results
- Enhance cookie acceptance with site-specific selectors:
  - Amazon (#sp-cc-accept)
  - E.Leclerc (#onetrust-accept-btn-handler)
  - Auchan (#popin_tc_privacy_button_2, #didomi-notice-agree-button)
  - Carrefour (#onetrust-accept-btn-handler)
  - Cdiscount (#footer_tc_privacy_button_2)
  - And more CMP platforms (Didomi, OneTrust, Tarteaucitron, etc.)
- Improve cookie handling with iframe support and retry logic
2025-11-23 07:54:49 +00:00
LogiFlow c0ec22f7bb Merge pull request #32 from R0m1k3/claude/hardcode-website-urls-01QrWZK7suQnuBrxYgK1r5JC
feat: Hardcode French e-commerce websites configuration
2025-11-23 08:41:50 +01:00
Claude e1a9bd2657 feat: Hardcode French e-commerce websites configuration
- Remove ability to add/edit/delete search sites from settings UI
- Configure 16 French e-commerce sites with search URLs:
  - Discount: Gifi, Stokomani, B&M, Centrakor, L'Incroyable, Action, La Foir'Fouille
  - Grandes Surfaces: E.Leclerc, Auchan, Carrefour
  - E-commerce: Amazon France, Cdiscount
  - Électronique: Darty, Boulanger, Fnac
- Add automatic database seeding on application startup
- Add /api/search-sites/seed and /api/search-sites/reset endpoints
- Add cookie consent banner handling for sites that require it
- Simplify Settings page to only show site list with toggle for active state
2025-11-23 07:40:12 +00:00
LogiFlow c6a9ef681e Merge pull request #31 from R0m1k3/claude/design-product-search-01Ea9dWZqZpuKFwBwVmp26PG
Claude/design product search 01 ea9d w zq zpu k fw bw vmp26 pg
2025-11-22 17:00:19 +01:00
Claude 7d92549a45 fix: Improve gifi.fr product link detection with .html pattern 2025-11-22 15:59:30 +00:00
Claude d132f991a9 fix: Add /products/ pattern for stokomani.fr 2025-11-22 15:58:18 +00:00
Claude 24fa6087fc fix: Improve product link detection for French e-commerce sites
- Add fallback to generic detection when configured selector fails
- Add many more CSS selectors for French e-commerce platforms (PrestaShop, Magento, WooCommerce)
- Add /produits/ pattern for bmstores.fr
- Improve generic container-based link detection
- Add navigation link filter to exclude non-product links
2025-11-22 15:57:58 +00:00
LogiFlow fae34d6acb Merge pull request #30 from R0m1k3/claude/design-product-search-01Ea9dWZqZpuKFwBwVmp26PG
fix: Improve domain matching and add discover-all endpoint
2025-11-22 16:48:54 +01:00
Claude 826d04331c fix: Improve domain matching and add discover-all endpoint
- Improve domain matching in direct_search_service to handle various formats
- Add /discover-all endpoint to discover search URLs for all sites missing one
- Add constants for magic numbers and fix linting issues
- Better domain cleaning in comparison functions
2025-11-22 15:40:59 +00:00
LogiFlow 39c5f39277 Merge pull request #29 from R0m1k3/claude/design-product-search-01Ea9dWZqZpuKFwBwVmp26PG
Claude/design product search 01 ea9d w zq zpu k fw bw vmp26 pg
2025-11-22 16:33:29 +01:00
Claude fa7a89d77d chore: Add .gitignore for Python cache files 2025-11-22 15:32:04 +00:00
Claude aad16985d4 fix: Clean up linting issues in search URL discovery
- Move imports to top-level in search_sites router
- Fix line too long issue with input selector
- Define constants for magic numbers (HTTP_OK, MIN_PRODUCTS_TO_MATCH)
- Use 'raise from' pattern for proper exception chaining
2025-11-22 15:31:12 +00:00
Claude 62b145ca8f feat: Auto-discover search URLs when adding sites
- Add search_url_discovery.py service that visits sites and finds search forms
- Automatically discover search_url when a new site is created without one
- Add POST /{site_id}/discover endpoint to force rediscovery
- Discovery runs in background to not block the API response
- Tries multiple methods: form analysis, common URL patterns
2025-11-22 15:27:21 +00:00
Claude 5bee3e3396 feat: Add more site configs and fix screenshot display
- Add search URLs for French discount stores: stokomani, gifi, bmstores,
  centrakor, lafoirfouille, tedi, leclerc, carrefour, auchan
- Fix screenshot URL construction in search results
- Include screenshot_url in AI extraction results and error cases
2025-11-22 15:24:02 +00:00
LogiFlow 40a66b0a55 Merge pull request #28 from R0m1k3/claude/design-product-search-01Ea9dWZqZpuKFwBwVmp26PG
fix: Fix AI service call and domain URL building
2025-11-22 16:12:29 +01:00
Claude ccc9c0080e fix: Fix AI service call and domain URL building
- Use AIService.analyze_image() class method instead of module function
- Handle AIExtractionResponse tuple return type properly
- Add _clean_domain() to strip protocol/www from stored domains
- Fixes "https://https://" URL duplication issue
2025-11-22 15:09:50 +00:00
LogiFlow fcf002b68b Merge pull request #27 from R0m1k3/claude/design-product-search-01Ea9dWZqZpuKFwBwVmp26PG
fix: Use Browserless for search page scraping
2025-11-22 16:06:36 +01:00
Claude df613cf64f fix: Use Browserless for search page scraping
- Replace httpx with Playwright/Browserless for search pages
- Handles JavaScript-rendered content and bot detection
- Add wait selectors for each site to ensure content is loaded
- Block images and tracking scripts for faster loading
- Sequential site scraping to avoid overloading Browserless
2025-11-22 15:05:47 +00:00
LogiFlow 6b705d1117 Merge pull request #26 from R0m1k3/claude/design-product-search-01Ea9dWZqZpuKFwBwVmp26PG
feat: Replace DuckDuckGo with direct site search
2025-11-22 16:02:54 +01:00
Claude 3b095801c5 feat: Replace DuckDuckGo with direct site search
- Remove duckduckgo-search dependency (unreliable results)
- Add direct_search_service.py that scrapes sites' search pages directly
- Add search_url and product_link_selector fields to SearchSite model
- Add beautifulsoup4 and lxml for HTML parsing
- Update schemas with new fields
- Add database migration for new columns

Direct search is more reliable as it queries each site's own search
functionality instead of relying on external search engines.
2025-11-22 15:00:49 +00:00
LogiFlow 2f79bdf8ec Merge pull request #25 from R0m1k3/claude/design-product-search-01Ea9dWZqZpuKFwBwVmp26PG
fix: Fix Browserless port and improve DuckDuckGo search
2025-11-22 15:54:21 +01:00
Claude 6f5b50a372 fix: Fix Browserless port and improve DuckDuckGo search
- Change BROWSERLESS_URL to use internal Docker port 3000 (not external 3012)
- Search each domain separately for better results
- Add detailed logging for debugging search issues
- Improve domain matching logic
2025-11-22 14:53:45 +00:00
LogiFlow 21d2ac9606 Merge pull request #24 from R0m1k3/claude/design-product-search-01Ea9dWZqZpuKFwBwVmp26PG
feat: Replace SearXNG with DuckDuckGo for product search
2025-11-22 15:47:44 +01:00
Claude 36415b9cfc feat: Replace SearXNG with DuckDuckGo for product search
- Remove SearXNG container and configuration files
- Add duckduckgo-search library for web search
- Create duckduckgo_service.py with async search support
- Update search_service.py to use DuckDuckGo instead of SearXNG
- Fix BROWSERLESS_URL port to 3012

This eliminates the persistent limiter.toml directory issue and
provides a simpler, more reliable search solution.
2025-11-22 14:38:03 +00:00
LogiFlow e60fc1efb8 Merge pull request #23 from R0m1k3/claude/design-product-search-01Ea9dWZqZpuKFwBwVmp26PG
fix: Mount entire SearXNG config directory to avoid file/directory is…
2025-11-22 15:30:21 +01:00
Claude 528c34eb6b fix: Mount entire SearXNG config directory to avoid file/directory issues
- Mount ./searxng as /etc/searxng:rw instead of individual files
- Remove custom entrypoint.sh (no longer needed)
- Simplify settings.yml configuration
2025-11-22 14:28:53 +00:00
LogiFlow fd68e06571 Merge pull request #22 from R0m1k3/claude/design-product-search-01Ea9dWZqZpuKFwBwVmp26PG
fix: Mount limiter.toml directly (file exists locally)
2025-11-22 15:23:51 +01:00
Claude 1f8974ce1a fix: Mount limiter.toml directly (file exists locally)
- Remove entrypoint script approach
- Mount limiter.toml directly as a file
- User must DELETE the SearXNG container in Portainer before redeploying
  to clear the cached directory state
2025-11-22 14:14:15 +00:00