Package to scrap data from brazilian funds
Project description
[English] Brazilian Fund Scrapper (or brfunds) is a package to recover data from investment funds without the need to download data to your computer. It uses the data available on https://comparadordefundos.com.br/ and can be used to Time Series Analysis of earnings, net assets and number of shareholders. It can also be used for comparing rentability of different funds.
Ps: Due to changes on the api, the search is done exclusively with the CNPJ of the fund (company id), this changed occured starting on version 0.2.0.
[Português] Brazilian Fund Scrapper (ou brfunds) é um pacote para obter dados de fundos de investimentos brasileiros sem precisar baixar arquivos para o drive do computador. Ele utiliza o banco de dados disponível em https://comparadordefundos.com.br/ e pode ser usado para Análise de Séries Temporais da rentabilidade, patrimônio do fundo e do número de cotistas.
Obs: Por conta de mudanças na api, a busca pelos fundos é feita exclusivamente pelo CNPJ do fundo, a mudança é válida a partir da versão 0.2.0.
Examples:
from brfunds import searchFund
#The search fuction can be used to get the fund CNPJ (brazilian company id)
# The max_size param can be used to control the size of the search
searchFund('Example Fund', max_size = 1)
Name | CNPJ |
---|---|
Example Fund 1 | 00.000.000/0000-00 |
from brfunds import getFundsEarnings
#With the CNPJ, you can get data from the statistic of the fund
getFundsEarnings('00.000.000/0000-00')
Date | Example Fund 1 |
---|---|
2016-01-31 | 0.000000 |
2016-02-01 | -0.000715 |
2016-02-06 | -0.009902 |
2016-02-07 | -0.009009 |
2016-02-08 | -0.007612 |
... | ... |
2021-06-02 | 0.910064 |
2021-06-04 | 0.914201 |
2021-06-07 | 0.917008 |
2021-06-08 | 0.911554 |
2021-06-09 | 0.911601 |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file brfunds-0.2.0.tar.gz
.
File metadata
- Download URL: brfunds-0.2.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f22ae7d7339087a29d565a04ff1424d57dcaf2b1902389e7da6a1a54a592541b |
|
MD5 | b3579069b196375d535fd6aca2f6f324 |
|
BLAKE2b-256 | 1ed229a4503a8cc88200bc3dce590dbecdada86821505c129b5d11f2ac04bcce |
File details
Details for the file brfunds-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: brfunds-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab2d336d8101283b67124b306b91b5058654e89b413f3c709b2bb557e5296e76 |
|
MD5 | c2052abaed013b32e29e5424318ab6d7 |
|
BLAKE2b-256 | c4adad7cb1b06a289bfe3f62aa6ea8b326d51b7cb738ee15a13dba77eb2cb744 |