LV project to get macro and industry data from Bcentral API and from CMF chile
To set up the project environment, create a Conda environment using the provided environment.yml
file:
conda env create -f environment.yml
conda activate lv_project
Build the container
docker buid -t LV_PROJECT .
Run the container
docker run -it --rm LV_PROJECT scripts/main_data.py
-
Get free API credentials at [https://si3.bcentral.cl/Siete/en/Siete/API?respuesta=](BANCO CENTRAL CHILE API)
-
Enter your credentials in credentials.txt in the project folder
USER PASSWORD
-
Fill the configs/empresas.json file with this format: {empresa_name : rut,...} , example: {"industry1":"94321000",...}
LV_PROJECT/
│
├── data/
│ ├── industrydata/...
│ └── macrodata/...
│
├── configs/
│ └── empresas.json
│
├── drivers/
│ └── driver1.exe
│
├── industry/
│ ├── data_manager.py
│ ├── html_parser.py
│ ├── industry_data.py
│ ├── parse_xbrl.py
│ ├── pdf_parser.py
│ └── scrapping.py
│
├── macro/
│ ├── get_data.py
│ ├── plots_data.py
│ └── serie.json
│
├── utils/
│ ├── cchc_preprocess.py
│ ├── download_data.py
│ ├── excel_downloads.py
│ └── json_utils.py
│
├── scripts/
│ ├── main_data.py
│ └── reports_plots.py
│
├── .gitignore
├── README.md
├── credentials.txt
└── environment.yml
data/
├── industrydata/
│ ├── industry1/
│ │ ├── raw/
│ │ │ ├── html/...
│ │ │ ├── pdf_financials/...
│ │ │ ├── pdf_razonados/...
│ │ │ └── xbrl/...
│ │ │
│ │ └── results/
│ │ ├── excel/...
│ │ └── csv/...
│ │
│ └── industry2/...
│
└── macrodata/
├── excel/...
└── plots/...
Distributed under the MIT License. See LICENSE.txt
for more information.