1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchQueries": [
10 "how does photosynthesis work",
11 "best laptops for programming",
12 "what is the difference between a roth ira and a traditional ira",
13 "how to start a vegetable garden",
14 "what causes inflation",
15 "best time to visit japan",
16 "how do electric cars work",
17 "what is machine learning",
18 "how to lower cholesterol naturally",
19 "what are the benefits of intermittent fasting",
20 ],
21 "proxyConfiguration": { "useApifyProxy": True },
22}
23
24
25run = client.actor("aboo.script/google-ai-mode-scraper").call(run_input=run_input)
26
27
28print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
29for item in client.dataset(run.default_dataset_id).iterate_items():
30 print(item)
31
32