1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "pages": [
10 {
11 "url": "https://acme-analytics.example.com/",
12 "title": "Acme Analytics — demand forecasting for retailers",
13 "text": "Acme Analytics helps mid-size retailers forecast demand. Connect Shopify, NetSuite or your POS, and get store-level forecasts every morning. Trusted by 300 retail brands in the US, UK and Canada. Start a 14-day free trial — plans from $49 per month.",
14 },
15 {
16 "url": "https://brightsmile-dental.example.org/",
17 "title": "Bright Smile Dental — family dentist in Austin, TX",
18 "text": "Bright Smile Dental is a family-owned dental practice in South Austin. Dr. Lee and our team offer cleanings, fillings, Invisalign and same-day crowns. New patients welcome — call or book online. We accept most PPO insurance plans.",
19 },
20 ],
21 "icp": "Independent dental practices (not chains)",
22}
23
24
25run = client.actor("leoworks/company-website-classifier").call(run_input=run_input)
26
27
28print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
29for item in client.dataset(run.default_dataset_id).iterate_items():
30 print(item)
31
32