Bonjour tout le monde.
Je cherche a utiliser l’API explore notamment pour récupérer des données d’enedis poste HTA/BT.
En utilisant les lien directement depuis le site tout foncitonne mais lorsque je passe sous python avec “requests” j’ai une erreur de certificats ssl. (cf en bas)
J’ai alors essayé d’utiliser l’API mais l’erreur reste la même.
I'm looking to use the explore API to retrieve data from enedis HTA/BT substations.
By using the links directly from the site everything works but when I use python with “requests” I get an ssl certificate error. (see below)
I then tried to use the API but the error remains the same.
HTTPSConnectionPool(host='data.enedis.fr', port=443): Max retries exceeded with url: /api/explore/v2.1/catalog/datasets/poste-electrique/exports/shp?lang=fr&refine=code_departement%3A%2282%22&facet=facet(name%3D%22code_departement%22%2C%20disjunctive%3Dtrue)&timezone=Europe%2FBerlin (Caused by SSLError(SSLCertVerificationError(1, 'SSSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1028)'))