1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "enableSearch": True,
10 "searchTasks": [
11 {
12 "what": "industrial packaging",
13 "country": "Germany",
14 "maxResults": 10,
15 },
16 {
17 "what": "adhesive tape",
18 "maxResults": 10,
19 },
20 ],
21 "maxResultsPerTask": 10,
22 "enableLeadDetails": True,
23 "maxProductsPerCompany": 10,
24 "maxItems": 10000,
25 "concurrency": 5,
26 "delayBetweenRequestsMs": 250,
27 "proxyConfiguration": {
28 "useApifyProxy": True,
29 "apifyProxyGroups": ["RESIDENTIAL"],
30 "apifyProxyCountry": "US",
31 },
32}
33
34
35run = client.actor("b2b_leads/europages-real-time-data-scraper").call(run_input=run_input)
36
37
38print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
39for item in client.dataset(run.default_dataset_id).iterate_items():
40 print(item)
41
42