Table of Contents (ToC)
The B3 S.A. - Brasil, Bolsa, Balcão (in English, B3 - Brazil Stock Exchange and Over-the-Counter Market), formerly BM&FBOVESPA, is a stock exchange located in São Paulo, Brazil, and the second oldest of the country (Wikipedia). B3 hold the stock indexes, movements (sales and purchases) of the stock market in Brazil.
This project scraping stock indexes and their business segments from B3' Market data and indices. Basically, it is processed the CSV files and generate one single output file, i.e., stock-indexes.csv.
venv allow you to manage separate package installations for different projects. They essentially allow you to create a 'virtual' isolated Python installation and install packages into that virtual installation (Python).
-
Create a Python environment
$ python -m venv .venv $ source .venv/bin/activate
-
Install the dependencies
$ pip install -r requirements.txt
- Runing the scraping
$ python main.py
Stock market data can be interesting to analyze and develop predictive models that generate financial returns. This scraping generates a dataset containing Brazilian stock market indexes information, such as stock code, company name, business segment, etc. You can combine this dataset with historical data (e.g., ibovespa-stocks) to create more robust analysis and models.
Distributed under the MIT License. See LICENSE for more information.
- Created by Leonardo Mauro ~ leomaurodesenv