bundesAPI / deutschland

Die wichtigsten APIs Deutschlands in einem Python Paket.
Apache License 2.0
1.23k stars 67 forks source link

destatis api does not work due to SSLError #80

Open christti opened 2 years ago

christti commented 2 years ago

Hello, when trying to use the destatis api (timeseries_data to be exact), it throws a SSLCertVerificationError.

MaxRetryError: HTTPSConnectionPool(host='www-genesis.destatis.de', port=443): Max retries exceeded with url: /genesisWS/rest/2020/data/timeseries?username=*******&password=******* (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))

My code is just the example for timeseries_data, with a valid username and password provided. The host url is https://www-genesis.destatis.de/genesisWS/rest/2020.