1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "categories": ["women/handbags"],
11 "designers": [],
12 "urls": [
13 "https://www.therealreal.com/shop/women/handbags",
14 "https://www.therealreal.com/shop/jewelry",
15 "https://www.therealreal.com/shop/women/handbags/crossbody-bags",
16 "https://www.therealreal.com/designers/chanel/women/handbags",
17 "https://www.therealreal.com/designers/chanel",
18 "https://www.therealreal.com/shop/women/handbags?page=2",
19 "https://www.therealreal.com/shop/women/handbags?price_from=100&price_to=2000",
20 "https://www.therealreal.com/products/women/handbags/bucket-bags/celine-canvas-plein-soleil-wyo9d",
21 "https://www.therealreal.com/shop?keywords=chanel",
22 ],
23 "availableOnly": False,
24 "onSaleOnly": False,
25 "vintageOnly": False,
26 "editorsPickOnly": False,
27 "withTagsOnly": False,
28 "fetchDetails": False,
29 "proxy": { "useApifyProxy": True },
30 "incrementalMode": False,
31 "emitUnchanged": False,
32 "emitExpired": False,
33 "ignoreFieldsForChanges": [],
34}
35
36
37run = client.actor("abotapi/therealreal-scraper").call(run_input=run_input)
38
39
40print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
41for item in client.dataset(run.default_dataset_id).iterate_items():
42 print(item)
43
44