1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "enableCompanySearch": True,
10 "searchKeywords": [
11 "monzo",
12 "tesla",
13 ],
14 "searchMaxResults": 10,
15 "searchFetchFullDetails": False,
16 "searchJurisdiction": "",
17 "searchCompanyType": "",
18 "searchStatus": "all",
19 "searchSort": "name",
20 "enableOfficerSearch": False,
21 "officerKeywords": ["Piracha"],
22 "officerMaxResults": 10,
23 "officerJurisdiction": "",
24 "officerStatus": "all",
25 "enableCompanyDetails": False,
26 "companyRefs": ["https://opencorporates.com/companies/gb/00445790"],
27 "enableFilings": False,
28 "filingsMaxPerCompany": 10,
29 "enableOwnership": False,
30 "ownershipMaxPerCompany": 10,
31 "enableLeadDetails": False,
32 "webhookUrl": "",
33 "webhookFormat": "json",
34 "enableScrapeByUrl": False,
35 "scrapeUrls": ["https://opencorporates.com/companies/gb/00445790"],
36 "proxyConfiguration": {
37 "useApifyProxy": True,
38 "apifyProxyGroups": ["RESIDENTIAL"],
39 "apifyProxyCountry": "US",
40 },
41}
42
43
44run = client.actor("b2b_leads/opencorporates-real-time-data-scraper").call(run_input=run_input)
45
46
47print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
48for item in client.dataset(run.default_dataset_id).iterate_items():
49 print(item)
50
51