1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "enableDirectoryBrowse": True,
10 "searchTasks": [{
11 "niche": "clothing",
12 "country": "US",
13 "maxResults": 10,
14 }],
15 "enableKeywordSearch": False,
16 "enableStoreDetails": False,
17 "enableLeadDetails": True,
18 "enrichThemeApps": False,
19 "enrichCatalogIntel": False,
20 "webhookUrl": "",
21 "webhookFormat": "json",
22 "proxyConfiguration": {
23 "useApifyProxy": True,
24 "apifyProxyGroups": ["RESIDENTIAL"],
25 "apifyProxyCountry": "US",
26 },
27}
28
29
30run = client.actor("b2b_leads/shopify-real-time-data-scraper").call(run_input=run_input)
31
32
33print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
34for item in client.dataset(run.default_dataset_id).iterate_items():
35 print(item)
36
37