mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-22 04:52:54 +02:00
extended bundesanzeiger API test
This commit is contained in:
parent
495ae10a7b
commit
a79c5b6560
@ -33,6 +33,14 @@
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"C:\\Users\\trist\\AppData\\Roaming\\Python\\Python310\\site-packages\\requests\\__init__.py:102: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (5.1.0)/charset_normalizer (2.0.12) doesn't match a supported version!\n",
|
||||
" warnings.warn(\"urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported \"\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
@ -52,20 +60,25 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"execution_count": 9,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{'date': datetime.datetime(2017, 7, 17, 0, 0), 'name': 'Aufsichtsrat', 'company': 'Atos IT-Dienstleistung und Beratung GmbH', 'report': '\\n\\n\\n\\n\\xa0\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nAtos IT-Dienstleistung und Beratung GmbH\\nGelsenkirchen\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nWechsel im Aufsichtsrat der Atos IT-Dienstleistung und Beratung GmbH, Gelsenkirchen\\nBekanntmachung gemäß § 8 DrittelbG\\nHerr Harald Olivier ist aus dem Aufsichtsrat der Gesellschaft ausgeschieden.\\nDurch Beschluss des Amtsgerichts Gelsenkirchen vom 26.06.2017 ist\\n\\n\\n―\\n\\n\\nFrau Martina Dick\\n Stellvertretende Betriebsratsvorsitzende der Gesellschaft\\n\\n\\n\\nzum Mitglied des Aufsichtsrats als Vertreterin der Arbeitnehmer bestellt worden.\\n\\xa0\\n\\nGelsenkirchen, im Juli 2017\\nAtos IT-Dienstleistung und Beratung GmbH\\nDie Geschäftsführung\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n'}\n"
|
||||
"dict_keys(['date', 'name', 'company', 'report'])\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"# Note: There can be multiple \"Aufsichtsrat\" entries per Company, the API however does only return one because the keys are overwritten\n",
|
||||
"print(data['Aufsichtsrat'])"
|
||||
"jahresabschluss = data['Jahresabschluss zum Geschäftsjahr vom 01.01.2019 bis zum 31.12.2019']\n",
|
||||
"\n",
|
||||
"# Note: Although the report includes the entire text it lacks the formatting that would make extracting information a lot easier as the data is wrapped inside a <table> originally\n",
|
||||
"with open(\"./jahresabschluss-example.txt\", \"w\") as file:\n",
|
||||
" file.write(jahresabschluss['report'])\n",
|
||||
"print(jahresabschluss.keys())"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
2834
Jupyter/API-tests/jahresabschluss-example.txt
Normal file
2834
Jupyter/API-tests/jahresabschluss-example.txt
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user