1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "providedRecords": [
10 {
11 "productUrl": "https://example.com/owned-product/1",
12 "productTitle": "Owned example product",
13 "reviewTitle": "Clear instructions",
14 "reviewText": "This owned demonstration review describes clear instructions and a useful product.",
15 "reviewRating": 4,
16 },
17 {
18 "productUrl": "https://example.com/owned-product/1",
19 "productTitle": "Owned example product",
20 "reviewTitle": "Useful with limits",
21 "reviewText": "This customer-authored example found the product useful but its packaging could improve.",
22 "reviewRating": 3,
23 },
24 {
25 "productUrl": "https://example.com/owned-product/1",
26 "productTitle": "Owned example product",
27 "reviewTitle": "Unrated example",
28 "reviewText": "This owned demonstration review has no rating. It should not add a fabricated zero.",
29 },
30 ],
31 "productUrls": ["https://www.ulta.com/p/lash-princess-false-lash-effect-mascara-xlsImpprod12741009"],
32 "searchTerms": [],
33}
34
35
36run = client.actor("thescrapelab/warehouse-grocery-review-intelligence-scraper").call(run_input=run_input)
37
38
39print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
40for item in client.dataset(run.default_dataset_id).iterate_items():
41 print(item)
42
43