1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "enableRecentlyFunded": True,
10 "maxRecentlyFunded": 10,
11 "maxStartupNews": 10,
12 "keywords": ["artificial intelligence"],
13 "maxSearch": 10,
14 "investors": [],
15 "maxBackedBy": 10,
16 "companies": [],
17 "maxCompanyResearch": 10,
18 "enableLeadDetails": True,
19 "maxAgeDays": 30,
20 "region": "US",
21 "proxyConfiguration": {
22 "useApifyProxy": True,
23 "apifyProxyGroups": ["RESIDENTIAL"],
24 "apifyProxyCountry": "US",
25 },
26}
27
28
29run = client.actor("b2b_leads/techcrunch-real-time-data-scraper-1").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36