1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "categories": [
10 "manufacturing",
11 "construction-and-contractors",
12 "technology-and-media",
13 "healthcare",
14 "wholesale-and-distribution",
15 ],
16 "states": [
17 "TX",
18 "FL",
19 "CA",
20 "OH",
21 "NC",
22 ],
23 "keywords": [],
24 "startUrls": [],
25 "minAskingPrice": 0,
26 "maxAskingPrice": 25000000,
27 "minCashFlow": 0,
28 "maxMultiple": 10,
29 "sbaInterestRatePct": 10.5,
30 "sbaTermYears": 10,
31 "minDaysOnMarket": 0,
32 "stateKey": "DEALSTREAM-STATE",
33 "maxItems": 20,
34 "proxyConfiguration": { "useApifyProxy": True },
35}
36
37
38run = client.actor("unique_dev/dealstream-businesses-for-sale-broker-scraper").call(run_input=run_input)
39
40
41print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
42for item in client.dataset(run.default_dataset_id).iterate_items():
43 print(item)
44
45