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 "levis 501 jeans",
13 "patagonia fleece",
14 ],
15 "searchMaxResults": 10,
16 "searchSort": "newest",
17 "searchBuyNowOnly": False,
18 "searchFetchFullDetails": False,
19 "enableListingDetails": False,
20 "listingIds": [],
21 "enableClosetListings": False,
22 "sellerIds": [],
23 "closetMaxListings": 50,
24 "closetCategories": [],
25 "enableSellerProfile": False,
26 "enableSoldComps": False,
27 "soldKeywords": [],
28 "soldDaysBack": 7,
29 "soldMaxItems": 50,
30 "enableScrapeByUrl": False,
31 "scrapeUrls": ["https://shopgoodwill.com/search?q=vintage+levis"],
32 "scrapeMaxPages": 3,
33 "webhookFormat": "json",
34 "proxyConfiguration": {
35 "useApifyProxy": True,
36 "apifyProxyGroups": ["RESIDENTIAL"],
37 "apifyProxyCountry": "US",
38 },
39}
40
41
42run = client.actor("b2b_leads/shopgoodwill-real-time-scraper").call(run_input=run_input)
43
44
45print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
46for item in client.dataset(run.default_dataset_id).iterate_items():
47 print(item)
48
49