BCEAO
Install
Use a virtual environment
python -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
pip install -r requirements.txt
Download
Trick to know: first HTTP access to https://edenpub.bceao.int return 500 status code but set a session cookie. This session cookie allows to access further urls.
Datasets can be download as CSV files («;» delimiter)
CSV report
-
URL : https://edenpub.bceao.int/exportTableauPredefiniEnColonne.php
-
method: POST
-
params :
- params: a string formatted as "{frequency}*{country_codes_separated_by_semi-colon}*{start_year}*{end_year*{metadata}*l
- export: ''
- idTab: dataset id
Notes:
-
frequency
is always 'A' at this time, monthly datasets are not processed -
country_codes
,start_year
,end_year
are extracted from https://edenpub.bceao.int HTML content -
metadata
is always 1 (= true) -
idTab
is extracted from dataset list on left column of https://edenpub.bceao.int HTML content