1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [
10 { "url": "https://www.example.com" },
11 { "url": "https://www.example.com/some-path" },
12 ],
13 "outputSchema": {
14 "business_name": "The name of the business",
15 "business_owner_name": "The owner or founder's name (look for titles like owner, founder, director, president)",
16 "business_address": "The full business address as it appears on the website",
17 "business_size": "Business size: 'small' (under 50 employees), 'medium' (50-250), or 'large' (250+)",
18 "contact_email": "Primary contact email address for the business",
19 "phone_number": "Primary business phone number",
20 "business_summary": "One sentence describing what the business does or offers",
21 },
22}
23
24
25run = client.actor("ashar_malik/bizsleuth").call(run_input=run_input)
26
27
28print("๐พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
29for item in client.dataset(run["defaultDatasetId"]).iterate_items():
30 print(item)
31
32