1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "url": "https://www.amazon.com/Amazon-Fire-TV-Stick-4K-streaming-device/dp/B0CJM1GNFQ/",
10 "newest": True,
11 "format_type": True,
12 "by_stars": "all_stars",
13 "max_results": 100,
14}
15
16
17run = client.actor("datascrape.me/amazon-com-easy-reviews-scraper-by-datascrape-me").call(run_input=run_input)
18
19
20print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
21for item in client.dataset(run["defaultDatasetId"]).iterate_items():
22 print(item)
23
24