1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "categories": ["dresses"],
11 "sortBy": "recommended",
12 "availabilityScope": "all",
13 "urls": [
14 "https://www.renttherunway.com/c/dresses",
15 "https://www.renttherunway.com/c/dresses/gowns",
16 "https://www.renttherunway.com/products?filters%5BsearchText%5D=black+gown",
17 "https://www.renttherunway.com/shop/designers/amur/reese_cascade_gown",
18 ],
19 "fetchDetails": True,
20 "fetchReviews": False,
21 "maxReviews": 20,
22 "maxItems": 20,
23 "maxPages": 0,
24 "proxy": { "useApifyProxy": True },
25 "incrementalMode": False,
26 "emitUnchanged": False,
27 "emitExpired": False,
28 "ignoreFieldsForChanges": [],
29 "maxNotifyListings": 50,
30}
31
32
33run = client.actor("abotapi/renttherunway-scraper").call(run_input=run_input)
34
35
36print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40