1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "searchTerm": "ecksofa",
11 "urls": [
12 "https://www.otto.de/suche/ecksofa/",
13 "https://www.otto.de/moebel/sofas/ecksofas/",
14 "https://www.otto.de/moebel/sofas/",
15 "https://www.otto.de/suche/ecksofa/?sortiertnach=preis-aufsteigend",
16 "https://www.otto.de/moebel/sofas/ecksofas/?sortiertnach=preis-aufsteigend",
17 "https://www.otto.de/moebel/sofas/ecksofas/?marke=sit-more&preis=100-500",
18 "https://www.otto.de/dundee/tilelist?rule=%28und.%28suchbegriff.ecksofa%29.%28~.%28v.1%29%29%29&sortiertnach=topseller&o=120",
19 "https://www.otto.de/dundee/tilelist?rule=%28und.%28suchbegriff.ecksofa%29.%28~.%28v.1%29%29%29&sortiertnach=topseller",
20 "https://otto.de/suche/ecksofa",
21 "https://www.otto.de/technik/fernseher/",
22 "https://www.otto.de/suche/laptop/?suchbegriff=laptop",
23 "https://www.otto.de/moebel/",
24 ],
25 "brands": [],
26 "proxy": { "useApifyProxy": True },
27 "incrementalMode": False,
28 "emitUnchanged": False,
29 "emitExpired": False,
30 "ignoreFieldsForChanges": [],
31}
32
33
34run = client.actor("abotapi/otto-de-scraper").call(run_input=run_input)
35
36
37print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41