1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "market": "galaxus-ch",
11 "searchTerms": ["laptop"],
12 "sortBy": "relevance",
13 "urls": [
14 "https://www.galaxus.ch/en/search?q=laptop",
15 "https://www.galaxus.ch/de/search?q=laptop",
16 "https://galaxus.ch/en/search?q=usb+cable",
17 "https://www.galaxus.ch/en/s1/producttype/notebooks-6",
18 "https://www.galaxus.de/de/s1/producttype/notebooks-6",
19 "https://www.digitec.ch/en/s1/producttype/notebooks-6",
20 "https://www.galaxus.ch/en/s1/tag/audio-591",
21 "https://www.galaxus.ch/en/s2/sector/home-kitchen-2",
22 "https://www.galaxus.ch/en/s1/promotion/producttype/notebooks-6",
23 "https://www.galaxus.ch/en/s1/sale/producttype/notebooks-6",
24 "https://www.galaxus.ch/en/s1/producttype/notebooks-6?sorting=PRICE_ASC",
25 "https://www.galaxus.ch/en/s1/producttype/notebooks-6?pf=price_min_500_max_1000",
26 "https://www.galaxus.ch/en/s1/product/logitech-mx-master-3s-wireless-mouse-61318913",
27 "https://www.digitec.ch/en/s1/product/61318913",
28 "https://www.galaxus.ch/en/s1/search?q=logitech+mx+master+3s",
29 "https://www.galaxus.ch/en/s1/producttype/notebooks-6/brand/lenovo-5",
30 "https://www.galaxus.ch/en/s1/producttype/notebooks-6/filter/operating-system-windows-35549",
31 "https://www.galaxus.ch/en/s1/producttype/notebooks-6/subtype/notebook-type-gaming-laptop-14",
32 "https://www.galaxus.ch/en/s1/sector/it-multimedia-1",
33 "https://www.galaxus.ch/en/s1/promotion",
34 "https://www.galaxus.ch/en/s1/sale",
35 "https://www.galaxus.ch/en/s1/secondhand/producttype/notebooks-6",
36 "https://www.galaxus.ch/en/s1/producttype/toplist/relevance/notebooks-6",
37 "https://www.galaxus.ch/en/brand/benq-2",
38 ],
39 "fetchDetails": False,
40 "maxItems": 20,
41 "maxPages": 0,
42 "proxyConfiguration": { "useApifyProxy": True },
43 "incrementalMode": False,
44 "emitUnchanged": False,
45 "emitExpired": False,
46 "compactUpdates": False,
47 "maxNotifyListings": 50,
48}
49
50
51run = client.actor("abotapi/galaxus-marketplace-scraper").call(run_input=run_input)
52
53
54print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
55for item in client.dataset(run.default_dataset_id).iterate_items():
56 print(item)
57
58