1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "snapshot",
10 "searches": [{
11 "name": "Chanel Classic Flap",
12 "brand": "Chanel",
13 "model": "Classic Flap",
14 "categories": ["bags"],
15 }],
16 "country": "FR",
17 "currency": "EUR",
18 "conditions": [
19 "new_with_tags",
20 "never_worn",
21 "very_good",
22 "good",
23 "fair",
24 ],
25 "authenticatedOnly": False,
26 "includeSold": True,
27 "mustExclude": [
28 "inspired",
29 "dupe",
30 ],
31 "maxItemsPerSearch": 30,
32 "maxSoldPerSearch": 20,
33 "dealThresholdPct": 20,
34 "dealBasis": "auto",
35 "minCompsForDeal": 5,
36 "priceDropThresholdPct": 5,
37 "buyerCustomsArea": "EU",
38 "includeItemDetails": False,
39 "proxyConfiguration": {
40 "useApifyProxy": True,
41 "apifyProxyGroups": ["RESIDENTIAL"],
42 "apifyProxyCountry": "FR",
43 },
44}
45
46
47run = client.actor("kondasviktor/vestiaire-collective-monitor").call(run_input=run_input)
48
49
50print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
51for item in client.dataset(run.default_dataset_id).iterate_items():
52 print(item)
53
54