1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "queries": ["leche"],
11 "categories": [
12 "https://www.carrefour.es/supermercado/lacteos-huevos/leche/cat20093/c",
13 "Vinos",
14 ],
15 "urls": [
16 "https://www.carrefour.es/supermercado/R-521007071/p",
17 "836507271",
18 "https://www.carrefour.es/glorioso-blanco-2025-vino-blanco-espana-rioja-doca-75-cl-120/8410351213004/p",
19 "https://www.carrefour.es/extractor-portatil-de-leche-kikkaboo/VC4A-27082334/p",
20 "https://www.carrefour.es/supermercado/lacteos-huevos/leche/cat20093/c",
21 "https://www.carrefour.es/supermercado/bebidas-promocion/F-1086Z13rjo/c",
22 "https://www.carrefour.es/?q=leche",
23 "https://www.carrefour.es/#!q=cerveza",
24 ],
25 "products": ["https://www.carrefour.es/supermercado/leche-semidesnatada-la-cantara-brik-1-l/R-VC4AECOMM-700248/p"],
26 "maxReviews": 20,
27 "proxy": {
28 "useApifyProxy": True,
29 "apifyProxyGroups": ["RESIDENTIAL"],
30 "apifyProxyCountry": "ES",
31 },
32 "incrementalMode": False,
33 "emitUnchanged": False,
34 "emitExpired": False,
35 "ignoreFieldsForChanges": [],
36}
37
38
39run = client.actor("abotapi/carrefour-es-scraper").call(run_input=run_input)
40
41
42print(f"πΎ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46