1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "spreadsheetUrl": "https://docs.google.com/spreadsheets/d/1H-cGw2BtVtkLNY071vLzgOHFY_4ZG6wvI0RVei82xN8/edit#gid=1471315014",
10 "query": "select A, B, C, D, E where B is not null and C is not null",
11 "range": "A1:E1000",
12 "headerRows": 0,
13 "minItems": 10,
14}
15
16
17run = client.actor("scrapeai/google-sheets").call(run_input=run_input)
18
19
20print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
21for item in client.dataset(run.default_dataset_id).iterate_items():
22 print(item)
23
24