1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "rawData": [
9 {
10 "name": "Example product",
11 "price": 19.99,
12 "url": "https://example.com/p/1",
13 "inStock": True,
14 "tags": ["new"],
15 },
16 {
17 "name": "Second product",
18 "price": 5,
19 "url": "https://example.com/p/2",
20 "inStock": False,
21 "seller": {
22 "name": "Example Shop",
23 "country": "US",
24 },
25 },
26 ] }
27
28
29run = client.actor("codemagnet/google-sheets-export").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36