1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keywords": [
10 "Iphone",
11 "Samsung Galaxy",
12 ],
13 "urls": [
14 "www.apple.com",
15 "www.samsung.com",
16 "www.amazon.com",
17 "www.flipkart.com",
18 "www.croma.com",
19 "www.gadgetsnow.com",
20 "www.tomsguide.com",
21 "www.91mobiles.com",
22 ],
23 "location": "New York",
24 "proxyConfiguration": {
25 "useApifyProxy": True,
26 "apifyProxyGroups": ["RESIDENTIAL"],
27 },
28}
29
30
31run = client.actor("caprolok/google-rank-checker").call(run_input=run_input)
32
33
34print("๐พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
35for item in client.dataset(run["defaultDatasetId"]).iterate_items():
36 print(item)
37
38