feat: add direct e-commerce search service using Playwright/Browserless with predefined site configurations

This commit is contained in:
Michael committed 2025-11-24 13:01:47 +01:00
1 parent 5f4d3afbae
commit 8053955097
1 file changed
+5
+5
View File
@@ -559,6 +559,11 @@ async def _search_site_browserless( # noqa: PLR0912, PLR0915
viewport={"width": 1920, "height": 1080},
user_agent=USER_AGENT,
locale="fr-FR",
timezone_id="Europe/Paris",
extra_http_headers={
"Accept-Language": "fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8",
}
)
# Bloquer les ressources inutiles