1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "spreadsheet": "https://docs.google.com/spreadsheets/d/1AbCdEfGhIjKlMnOpQrStUvWxYz0123456789abcdEFG/edit",
10 "rawData": [
11 {
12 "company": "Acme Inc",
13 "website": "acme.com",
14 "city": "Austin",
15 "tags": [
16 "saas",
17 "b2b",
18 ],
19 },
20 {
21 "company": "Globex",
22 "website": "globex.com",
23 "city": "Denver",
24 "tags": ["manufacturing"],
25 },
26 ],
27}
28
29
30run = client.actor("adhistory/google-sheets-export-actor").call(run_input=run_input)
31
32
33print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
34for item in client.dataset(run.default_dataset_id).iterate_items():
35 print(item)
36
37