mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-12 01:39:25 +02:00
fix: Correct proxy usage in scraper_service.py to handle dict format
This commit is contained in:
1 parent
4c410ef48f
commit
dd558b0e43
1 file changed
+4
-4
@@ -567,10 +567,10 @@ class ScraperService:
|
||||
|
||||
# Add proxy for Amazon if configured
|
||||
if is_amazon:
|
||||
proxy_url = _get_amazon_proxy()
|
||||
if proxy_url:
|
||||
logger.info(f"Using proxy for Amazon: {proxy_url.split('@')[-1] if '@' in proxy_url else proxy_url}")
|
||||
context_options["proxy"] = {"server": proxy_url}
|
||||
proxy_config = _get_amazon_proxy()
|
||||
if proxy_config:
|
||||
# proxy_config is already a dict with {"server": "...", "username": "...", "password": "..."}
|
||||
context_options["proxy"] = proxy_config
|
||||
|
||||
context = await current_browser.new_context(**context_options)
|
||||
|
||||
|
||||
Reference in new issue
Block a user