1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "requests": [
9 "generator for a refrigerator, sump pump, furnace, 10 lights, tv, internet router and a well pump",
10 "whole house standby generator on natural gas: 4 ton central ac, electric water heater, electric range, refrigerator, freezer, well pump, 30 lights",
11 "what size generator to run a 3 ton central air with a soft start, fridge, furnace fan and 20 led lights, propane, 100 lb tank",
12 "rv ac, microwave, coffee maker, tv, inverter, 5 gallon tank",
13 "job site: table saw, air compressor, 2 circular saws, 4 drills",
14 "7500 watt generator for a 1 hp well pump, 2 fridges, space heater, microwave, 3 days",
15 {
16 "loads": [
17 "refrigerator",
18 {
19 "name": "medical equipment",
20 "runningW": 300,
21 },
22 {
23 "name": "sump pump",
24 "hp": 0.5,
25 },
26 ],
27 "fuel": "gasoline",
28 },
29 ] }
30
31
32run = client.actor("jumblemog/generator-size-calculator").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