1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchQuery": "",
10 "categoryUrl": "",
11 "brandUrl": "",
12 "closetUrl": "",
13 "startUrls": [],
14 "maxListings": 100,
15 "maxPages": 5,
16 "sortBy": "added_desc",
17 "proxyConfiguration": {
18 "useApifyProxy": True,
19 "apifyProxyGroups": ["RESIDENTIAL"],
20 },
21}
22
23
24run = client.actor("h4sh/poshmark-scraper").call(run_input=run_input)
25
26
27print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
28for item in client.dataset(run["defaultDatasetId"]).iterate_items():
29 print(item)
30
31