1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "enableListingSearch": True,
10 "searchKeywords": [
11 "carhartt detroit jacket",
12 "vintage 90s levis 501",
13 "patagonia fleece",
14 ],
15 "searchMaxResults": 10,
16 "searchSort": "relevance",
17 "searchFetchFullDetails": False,
18 "enableListingDetails": False,
19 "listingIds": [],
20 "listingUrls": [],
21 "enableClosetListings": False,
22 "sellerUsernames": [],
23 "sellerMaxListings": 30,
24 "enableSellerProfile": False,
25 "enableSoldHistory": False,
26 "enableScrapeByUrl": False,
27 "scrapeUrls": ["https://www.vestiairecollective.com/search/?q=vintage%20carhartt"],
28 "webhookFormat": "json",
29 "country": "US",
30 "proxyConfiguration": {
31 "useApifyProxy": True,
32 "apifyProxyGroups": ["RESIDENTIAL"],
33 "apifyProxyCountry": "US",
34 },
35}
36
37
38run = client.actor("b2b_leads/vestiaire-collective-real-time-data-scraper").call(run_input=run_input)
39
40
41print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
42for item in client.dataset(run.default_dataset_id).iterate_items():
43 print(item)
44
45