1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keywords": [
10 "laptop stand",
11 "coffee grinder",
12 ],
13 "marketplace": "US",
14 "alias": "aps",
15 "expansionMode": "a-z",
16 "customSuffixes": [
17 "best",
18 "for women",
19 "under 50",
20 ],
21 "maxSuggestionsPerPrefix": 10,
22 "maxPrefixes": 20,
23 "dedupeSuggestions": True,
24 "requestDelayMs": 100,
25}
26
27
28run = client.actor("automation-lab/amazon-autocomplete-scraper").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35