1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "enableRecentlyFunded": True,
10 "maxRecentlyFunded": 10,
11 "enableSearch": False,
12 "keywords": [
13 "ai infrastructure",
14 "fintech",
15 ],
16 "maxPerKeyword": 10,
17 "enableBackedBy": False,
18 "investors": [
19 "a16z",
20 "Y Combinator",
21 ],
22 "maxPerInvestor": 10,
23 "enableCompanyResearch": False,
24 "companies": [
25 "Stripe",
26 "Ramp",
27 ],
28 "maxPerCompany": 10,
29 "enableStartupNews": False,
30 "enableLeadDetails": True,
31 "maxArticles": 100,
32 "maxAgeDays": 0,
33 "region": "US",
34 "proxyConfiguration": {
35 "useApifyProxy": True,
36 "apifyProxyGroups": ["RESIDENTIAL"],
37 "apifyProxyCountry": "US",
38 },
39}
40
41
42run = client.actor("b2b_leads/crunchbase-real-time-data-scraper").call(run_input=run_input)
43
44
45print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
46for item in client.dataset(run.default_dataset_id).iterate_items():
47 print(item)
48
49