1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "market": "cl",
11 "queries": ["iphone"],
12 "sort": "relevance",
13 "urls": [
14 "https://www.falabella.com/falabella-cl/search?Ntt=iphone",
15 "https://www.falabella.com/falabella-cl/collection/iphone?sred=iphone",
16 "https://www.falabella.com/falabella-cl/category/cat1012/TV-y-Video",
17 "https://www.falabella.com/falabella-cl/category/cat1012",
18 "https://www.falabella.com/falabella-cl/brand/APPLE",
19 "https://www.falabella.com/falabella-cl/brand/APPLE?page=2",
20 "https://www.falabella.com/falabella-cl/search?Ntt=televisor&page=2",
21 "https://www.falabella.com/falabella-cl/category/cat1012/TV-y-Video?sortBy=derived.price.search,asc",
22 "https://www.falabella.com/falabella-cl/category/cat1012/TV-y-Video?f.product.brandName=SAMSUNG",
23 "https://www.falabella.com/falabella-cl/product/80746061/led-smart-tv-58-pud7019-4k-uhd-philips",
24 "https://www.falabella.com.co/falabella-co/search?Ntt=televisor",
25 "https://www.falabella.com.co/falabella-co/category/cat1660941",
26 "https://www.falabella.com.pe/falabella-pe",
27 ],
28 "fetchDetails": False,
29 "maxItems": 20,
30 "maxPages": 0,
31 "proxyConfiguration": {
32 "useApifyProxy": True,
33 "apifyProxyGroups": ["RESIDENTIAL"],
34 },
35 "incrementalMode": False,
36 "emitUnchanged": False,
37 "emitExpired": False,
38 "maxNotifyListings": 50,
39}
40
41
42run = client.actor("abotapi/falabella-marketplace-scraper").call(run_input=run_input)
43
44
45print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
46for item in client.dataset(run.default_dataset_id).iterate_items():
47 print(item)
48
49