feat: try make it work
This commit is contained in:
10
README.md
Normal file
10
README.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# Destatis Genesis
|
||||||
|
|
||||||
|
This Project aims to provide a client the destatis genesis rest api.
|
||||||
|
|
||||||
|
It has been introduced to download specific data, as the web UI didn't work.
|
||||||
|
As of now the UI has been fixed. Due to that fix, this project hasn't reached an working state.
|
||||||
|
|
||||||
|
Documentation can be found here:
|
||||||
|
[Doc](https://www-genesis.destatis.de/datenbank/online/docs/GENESIS-Webservices_Einfuehrung.pdf)
|
||||||
|
[Examples](https://www-genesis.destatis.de/datenbank/online/docs/20250505_python_post_logincheck_tablefile_cubefile.pdf)
|
||||||
15
job-get.sh
Executable file
15
job-get.sh
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
source ./.env
|
||||||
|
|
||||||
|
BASE_URL=https://www-genesis.destatis.de/genesisWS/rest/2020
|
||||||
|
|
||||||
|
curl -X POST "$BASE_URL/catalogue/jobs" \
|
||||||
|
-H "Content-Type: application/x-www-form-urlencoded" \
|
||||||
|
-H "username: $DESTATIS_TOKEN" \
|
||||||
|
-d "selection=" \
|
||||||
|
-d "searchcriterion=status" \
|
||||||
|
-d "sortcriterion=status" \
|
||||||
|
-d "area=all" \
|
||||||
|
-d "type=all" \
|
||||||
|
| jq
|
||||||
42
job-start.sh
Executable file
42
job-start.sh
Executable file
@@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
source ./.env
|
||||||
|
|
||||||
|
BASE_URL=https://www-genesis.destatis.de/genesisWS/rest/2020
|
||||||
|
|
||||||
|
# curl -X POST "$BASE_URL/helloworld/logincheck" \
|
||||||
|
# -H "Content-Type: application/x-www-form-urlencoded" \
|
||||||
|
# -H "username: c7a23d31ee1b4af6bc30c5c49840e57b" \
|
||||||
|
|
||||||
|
curl -X POST "$BASE_URL/data/tablefile" \
|
||||||
|
-H "Content-Type: application/x-www-form-urlencoded" \
|
||||||
|
-H "username: $DESTATIS_TOKEN" \
|
||||||
|
-d "name=23131-0002" \
|
||||||
|
-d "startyear=2010" \
|
||||||
|
-d "endyear=2012" \
|
||||||
|
-d "compress=true" \
|
||||||
|
-d "job=true" \
|
||||||
|
-d "format=csv" \
|
||||||
|
-d "language=de" \
|
||||||
|
--output start-job.json
|
||||||
|
|
||||||
|
# curl -X POST "$BASE_URL/data/tablefile" \
|
||||||
|
# -H "Content-Type: application/x-www-form-urlencoded" \
|
||||||
|
# -H "username: $DESTATIS_TOKEN" \
|
||||||
|
# -d "name=23131-0002_625860825" \
|
||||||
|
# -d "area=Alle" \
|
||||||
|
# --output output.zip
|
||||||
|
|
||||||
|
# curl -X POST "$BASE_URL/catalogue/results" \
|
||||||
|
# -H "Content-Type: application/x-www-form-urlencoded" \
|
||||||
|
# -H "username: $DESTATIS_TOKEN"
|
||||||
|
|
||||||
|
# curl -X POST "$BASE_URL/catalogue/results" \
|
||||||
|
# -H "Content-Type: application/x-www-form-urlencoded" \
|
||||||
|
# -H "username: $DESTATIS_TOKEN"
|
||||||
|
|
||||||
|
# curl -X POST "$BASE_URL/catalogue/jobs" \
|
||||||
|
# -H "Content-Type: application/x-www-form-urlencoded" \
|
||||||
|
# -H "username: $DESTATIS_TOKEN" \
|
||||||
|
# -d "selection=*"
|
||||||
|
#
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
BASE_URL=https://www-genesis.destatis.de/genesisWS/rest/2020
|
|
||||||
|
|
||||||
# curl -X POST "$BASE_URL/helloworld/logincheck" \
|
|
||||||
# -H "Content-Type: application/x-www-form-urlencoded" \
|
|
||||||
# -H "username: c7a23d31ee1b4af6bc30c5c49840e57b" \
|
|
||||||
|
|
||||||
curl -X POST "$BASE_URL/data/tablefile" \
|
|
||||||
-H "Content-Type: application/x-www-form-urlencoded" \
|
|
||||||
-H "username: $DESTATIS_TOKEN" \
|
|
||||||
-d "name=61111-0004" \
|
|
||||||
-d "startyear=2025" \
|
|
||||||
-d "transpose=true" \
|
|
||||||
-d "classifyingvariable1=C13A5" \
|
|
||||||
-d "classifyingkey1=CC13-071*" \
|
|
||||||
-d "compress=true" \
|
|
||||||
-d "format=csv" \
|
|
||||||
-d "language=de"
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user