File size: 1,104 Bytes
9f36753
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import requests

url = "https://d3e6htiiul5ek9.cloudfront.net/prod/productos"
params = {
    "string": "ledesma",
    "array_sucursales": "9-3-121,9-1-119,9-2-30,10-3-380,10-3-692,10-3-615,10-3-616,10-3-670,10-3-732,9-3-5260,10-3-533,12-1-41,2002-1-71,3-1-1695,10-3-298,19-1-03105,10-3-247,9-2-247,10-3-563,10-3-587,23-1-6226,10-3-370,10-3-526,12-1-88,10-3-400,10-3-628,10-3-621,9-1-240,10-3-775,10-3-561",
    "offset": 0,
    "limit": 50,
    "sort": "-cant_sucursales_disponible"
}
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0",
    "Accept": "application/json, text/plain, */*",
    "Accept-Language": "en-US,en;q=0.5",
    "Accept-Encoding": "gzip, deflate, br, zstd",
    "Origin": "https://www.preciosclaros.gob.ar",
    "Connection": "keep-alive",
    "Referer": "https://www.preciosclaros.gob.ar/",
    "Sec-Fetch-Dest": "empty",
    "Sec-Fetch-Mode": "cors",
    "Sec-Fetch-Site": "cross-site",
    "TE": "trailers"
}

response = requests.get(url, params=params, headers=headers)
print(response.json())