1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://trends.google.com/trends/explore?date=today%205-y&geo=US&q=solo%20stove%20fire,solo%20stove%20yukon,solo%20stove%20canyon,solo%20stove%20ranger,solo%20stove%20bonfire&hl=en" }],
10 "proxyConfig": { "useApifyProxy": True },
11}
12
13
14run = client.actor("dtrungtin/google-trends-interest-scraper").call(run_input=run_input)
15
16
17print("๐พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
18for item in client.dataset(run["defaultDatasetId"]).iterate_items():
19 print(item)
20
21