1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [],
10 "searchKeywords": ["coffee shop"],
11 "maxResults": 5,
12 "country": "global",
13 "industry": "",
14 "locationText": "",
15 "sortOrder": "newest",
16 "minAskingPrice": 0,
17 "maxAskingPrice": 0,
18 "minRevenue": 0,
19 "maxRevenue": 0,
20 "minCashFlow": 0,
21 "maxCashFlow": 0,
22 "onlyDisclosedPrice": False,
23 "onlyDisclosedRevenue": False,
24 "onlyDisclosedCashFlow": False,
25}
26
27
28run = client.actor("parsebird/businessesforsale-listings-scraper").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35