1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "snapshot",
10 "searches": [{
11 "name": "E-Bike Berlin",
12 "query": "e-bike",
13 "postcode": "10115",
14 "radiusKm": 30,
15 "priceMin": 300,
16 }],
17 "homePostcode": "10115",
18 "sellerType": "any",
19 "adType": "offer",
20 "priceTypes": [
21 "fixed",
22 "negotiable",
23 "free",
24 "on_request",
25 ],
26 "includeTopAds": False,
27 "excludeJunk": True,
28 "maxItemsPerSearch": 20,
29 "dealThresholdPct": 30,
30 "minCompsForDeal": 8,
31 "priceDropThresholdPct": 10,
32 "hideHighScamRisk": False,
33 "includeItemDetails": False,
34 "alertLanguage": "en",
35 "maxAlertsPerRun": 20,
36 "proxyConfiguration": {
37 "useApifyProxy": True,
38 "apifyProxyGroups": ["RESIDENTIAL"],
39 "apifyProxyCountry": "DE",
40 },
41}
42
43
44run = client.actor("kondasviktor/kleinanzeigen-deal-monitor").call(run_input=run_input)
45
46
47print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
48for item in client.dataset(run.default_dataset_id).iterate_items():
49 print(item)
50
51