1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "enableListingSearch": True,
10 "searchKeywords": [
11 "gucci marmont",
12 "chanel flap bag",
13 "hermes scarf",
14 ],
15 "searchMaxResults": 10,
16 "searchFetchFullDetails": False,
17 "searchSort": "relevance",
18 "enableListingDetails": False,
19 "listingIds": [],
20 "listingUrls": [],
21 "enableClosetListings": False,
22 "sellerUsernames": [],
23 "sellerMaxListings": 30,
24 "enableSellerProfile": False,
25 "enableSoldHistory": False,
26 "soldMaxItems": 30,
27 "enableScrapeByUrl": False,
28 "scrapeUrls": [],
29 "maxItems": 0,
30 "webhookFormat": "json",
31 "proxyConfiguration": {
32 "useApifyProxy": True,
33 "apifyProxyGroups": ["RESIDENTIAL"],
34 "apifyProxyCountry": "US",
35 },
36}
37
38
39run = client.actor("b2b_leads/therealreal-real-time-data-scraper").call(run_input=run_input)
40
41
42print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46