1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "rows": [
10 {
11 "company": "Figma",
12 "website": "figma.com",
13 "city": "San Francisco",
14 },
15 {
16 "company": "Brex",
17 "website": "brex.com",
18 "city": "San Francisco",
19 },
20 {
21 "company": "Kith",
22 "website": "kithnyc.com",
23 "city": "New York",
24 },
25 {
26 "company": "Austin Dental Works",
27 "website": "austindentalworks.com",
28 "city": "Austin",
29 },
30 {
31 "company": "Ogilvy",
32 "website": "ogilvy.com",
33 "city": "New York",
34 },
35 {
36 "company": "Warby Parker",
37 "website": "warbyparker.com",
38 "city": "New York",
39 },
40 ],
41 "instruction": "Which industry is {company} ({website}, based in {city}) in?",
42 "mode": "classify",
43 "labels": [
44 "SaaS",
45 "Fintech",
46 "E-commerce",
47 "Local services",
48 "Agency",
49 "Other",
50 ],
51 "outputColumn": "industry",
52}
53
54
55run = client.actor("bulkleads/ai-for-every-row-csv").call(run_input=run_input)
56
57
58print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
59for item in client.dataset(run.default_dataset_id).iterate_items():
60 print(item)
61
62