1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "reviews": [{
10 "authorName": "John Smith",
11 "authorTitle": "Marketing Director",
12 "authorPhotoUrl": "",
13 "reviewText": "I couldn’t be happier with the service I received! From start to finish, everything was handled with care and professionalism. The team was always there to answer my questions and made sure I was completely satisfied. It’s rare to find such great customer service these days—highly recommend!",
14 "rating": 5,
15 }],
16 "customScraperActorId": "username/actor-name",
17 "scraperInput": {},
18 "primaryColor": "#667eea",
19 "secondaryColor": "#764ba2",
20 "textColor": "#000000",
21 "starColor": "#FFD700",
22}
23
24
25run = client.actor("happitap/review-to-image-generator").call(run_input=run_input)
26
27
28print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
29for item in client.dataset(run["defaultDatasetId"]).iterate_items():
30 print(item)
31
32