1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "URL": "https://www.homedepot.com/p/HOOVER-WindTunnel-Bagless-Pet-Upright-Vacuum-Cleaner-with-Automatic-Cord-Rewind-For-Carpet-Hardwood-and-Upholstery-UH71320V/317525930",
10 "maxMode": False,
11 "sorts": ["newest"],
12 "starRatings": ["all"],
13 "maxreviews": 30,
14}
15
16
17run = client.actor("wibuild.in/home-depot-reviews-scraper").call(run_input=run_input)
18
19
20print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
21for item in client.dataset(run.default_dataset_id).iterate_items():
22 print(item)
23
24