1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "maxCompanyAgeDaysPreset": "30",
10 "maxCompanyAgeDays": 30,
11 "states": [],
12 "cities": [],
13 "segments": [],
14 "cnaes": [],
15 "keywords": [],
16 "companySizes": [],
17 "onlyActive": True,
18 "onlyHeadquarters": True,
19 "onlyWithPhone": False,
20 "onlyWithEmail": False,
21 "onlyWithWhatsapp": False,
22 "onlyWithWebsite": False,
23 "enrichmentMode": "none",
24 "whatsappDiscovery": "none",
25 "maxResults": 10,
26 "discoveryConcurrency": 5,
27 "enrichmentConcurrency": 3,
28 "debug": False,
29}
30
31
32run = client.actor("basta_compilar/brazil-fresh-business-leads").call(run_input=run_input)
33
34
35print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39