From 00c1f4c2b3bbd80c6d329f482513aa625fa545ab Mon Sep 17 00:00:00 2001 From: Augusto Andrade Date: Thu, 3 Jul 2025 17:03:10 -0300 Subject: [PATCH] fix brazilian MeLI domain the br domain starts with lista., and the ar domain should start with listado. instead. This commit fixes this problem --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 564b754..016b838 100644 --- a/app.py +++ b/app.py @@ -24,14 +24,14 @@ # Domain configurations COUNTRY_CONFIG = { 'ar': { - 'domain': 'mercadolibre.com.ar', + 'domain': 'listado.mercadolibre.com.ar', 'currency': 'ARS', 'country_name': 'Argentina', 'exchange_rate_api': API_URL, 'needs_exchange_rate': True }, 'br': { - 'domain': 'mercadolivre.com.br', + 'domain': 'lista.mercadolivre.com.br', 'currency': 'BRL', 'country_name': 'Brasil', 'exchange_rate_api': None, @@ -156,7 +156,7 @@ def get_prices(item, number_of_pages, country_code='ar', condition='all'): for i in range(number_of_pages): start_item = i * 50 + 1 - url = f"https://listado.{domain}/{item}{condition_param}_Desde_{start_item}_NoIndex_True" + url = f"https://{domain}/{item}{condition_param}_Desde_{start_item}_NoIndex_True" try: response = requests.get(url) response.raise_for_status()