1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "lookup",
10 "krsNumbers": [
11 "0000028860",
12 "0000006865",
13 "0000023302",
14 "0000026438",
15 "0000019193",
16 ],
17 "nipNumbers": [],
18 "regonNumbers": [],
19 "registers": "both",
20 "daysBack": 3,
21 "deepScan": False,
22 "legalForms": [],
23 "voivodeships": [],
24 "cities": [],
25 "postalCodePrefixes": [],
26 "nameContains": [],
27 "excludeTerms": [],
28 "pkdCodes": [],
29 "pkdScope": "any",
30 "onlyWithWebsite": False,
31 "onlyWithEmail": False,
32 "onlyWithFinancialStatements": False,
33 "statuses": [],
34 "onlyWithArrears": False,
35 "boardMemberNameContains": [],
36 "boardRoleContains": [],
37 "onlyWithSupervisoryBoard": False,
38 "shareholderNameContains": [],
39 "shareholderKrs": [],
40 "onlyWithCorporateShareholders": False,
41 "outputSections": [
42 "board",
43 "ownership",
44 "activities",
45 "filings",
46 "risk",
47 ],
48 "historyEntriesLimit": 25,
49 "monitorFields": [],
50 "emitBaseline": True,
51 "monitorFullRescan": False,
52 "maxResults": 10,
53 "maxScan": 300,
54 "proxyConfiguration": { "useApifyProxy": False },
55}
56
57
58run = client.actor("getascraper/poland-krs-company-registry-scraper").call(run_input=run_input)
59
60
61print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
62for item in client.dataset(run.default_dataset_id).iterate_items():
63 print(item)
64
65