1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "queries": [
10 "apify actors",
11 "best crm software",
12 ],
13 "country": "US",
14 "language": "en",
15 "numResults": 10,
16 "includePeopleAlsoAsk": True,
17 "includeRelatedSearches": True,
18 "startPage": 1,
19 "maxPages": 1,
20 "proxyConfiguration": {
21 "useApifyProxy": True,
22 "apifyProxyGroups": ["UNBLOCKER"],
23 },
24}
25
26
27run = client.actor("fetch_cat/google-search-results-scraper").call(run_input=run_input)
28
29
30print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
31for item in client.dataset(run.default_dataset_id).iterate_items():
32 print(item)
33
34