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