1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "searchTerm": "akkuschrauber",
11 "brands": [],
12 "sellers": [],
13 "urls": [
14 "https://www.hornbach.de/s/akkuschrauber/",
15 "https://www.hornbach.de/s/akkuschrauber/?page=2",
16 "https://www.hornbach.de/s/akkuschrauber/?page=2&sortBy=PRICE_ASC",
17 "https://www.hornbach.de/s/bosch%20professional/",
18 "https://www.hornbach.de/c/maschinen-werkzeug-werkstatt/S1937/",
19 "https://www.hornbach.de/c/maschinen-werkzeug-werkstatt/S1937/?page=2",
20 "https://www.hornbach.de/c/maschinen-werkzeug-werkstatt/maschinen/akkuschrauber/S43/",
21 "https://www.hornbach.de/p/mafell-akku-bohrschrauber-asb-18-pure-im-t-max-akkuschrauber-akkubohrmaschine/12866190/",
22 "https://www.hornbach.de/p/artikel/6141527/",
23 "https://www.hornbach.de/p/akku-bohrschrauber-gsr-18v-65-bosch-professional-inkl-2-x-akku-4-0-ah-und-ladegeraet-l-case/12314733",
24 ],
25 "proxy": { "useApifyProxy": True },
26 "incrementalMode": False,
27 "emitUnchanged": False,
28 "emitExpired": False,
29 "ignoreFieldsForChanges": [],
30}
31
32
33run = client.actor("abotapi/hornbach-de-scraper").call(run_input=run_input)
34
35
36print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40