1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "searchQueries": ["tote bag"],
11 "availability": "available",
12 "listingInputs": [
13 "https://poshmark.com/brand/Madewell",
14 "https://poshmark.com/brand/Madewell-Women",
15 "https://poshmark.com/search?query=tote%20bag&type=listings",
16 "https://poshmark.com/search?query=tote&department=Women&availability=sold_out",
17 "https://poshmark.com/category/Women-Bags",
18 "https://poshmark.com/category/Women",
19 "https://poshmark.com/category/Women-Dresses-Mini?condition=nwt",
20 "https://poshmark.com/closet/poshmark",
21 "https://poshmark.com/brand/Madewell?availability=sold_out&sort_by=added_desc",
22 "https://poshmark.com/brand/Madewell?max_id=2",
23 "https://poshmark.com/listing/Madewell-Cattail-Tiered-Midi-Dress-Red-6acbfd13b552236b28cafa0b",
24 "https://poshmark.com/listing/6acbfd13b552236b28cafa0b",
25 ],
26 "urls": [
27 "https://poshmark.com/brand/Madewell",
28 "https://poshmark.com/brand/Madewell-Women",
29 "https://poshmark.com/search?query=tote%20bag&type=listings",
30 "https://poshmark.com/search?query=tote&department=Women&availability=sold_out",
31 "https://poshmark.com/category/Women-Bags",
32 "https://poshmark.com/category/Women",
33 "https://poshmark.com/category/Women-Dresses-Mini?condition=nwt",
34 "https://poshmark.com/closet/poshmark",
35 "https://poshmark.com/brand/Madewell?availability=sold_out&sort_by=added_desc",
36 "https://poshmark.com/brand/Madewell?max_id=2",
37 "https://poshmark.com/listing/Madewell-Cattail-Tiered-Midi-Dress-Red-6acbfd13b552236b28cafa0b",
38 "https://poshmark.com/listing/6acbfd13b552236b28cafa0b",
39 ],
40 "maxItems": 20,
41 "proxyConfiguration": { "useApifyProxy": True },
42 "incrementalMode": False,
43 "emitUnchanged": False,
44 "emitExpired": False,
45 "ignoreFieldsForChanges": [],
46 "maxNotifyListings": 50,
47}
48
49
50run = client.actor("abotapi/poshmark-scraper").call(run_input=run_input)
51
52
53print(f"πΎ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
54for item in client.dataset(run.default_dataset_id).iterate_items():
55 print(item)
56
57