1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "enableSearch": True,
10 "searchTasks": [{
11 "query": "general-contractor",
12 "location": "Austin, TX",
13 "maxResults": 10,
14 }],
15 "maxResultsPerTask": 10,
16 "maxResultSetsPerTask": 8,
17 "enableLeadDetails": True,
18 "leadDetailsSiteLookups": 3,
19 "enableProfileDetails": False,
20 "profileUrls": [],
21 "enableReviews": False,
22 "reviewProfileUrls": [],
23 "maxItems": 10,
24 "webhookUrl": "",
25 "webhookFormat": "json",
26 "proxyConfiguration": {
27 "useApifyProxy": True,
28 "apifyProxyGroups": ["RESIDENTIAL"],
29 "apifyProxyCountry": "US",
30 },
31}
32
33
34run = client.actor("b2b_leads/houzz-real-time-scraper").call(run_input=run_input)
35
36
37print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41