Parser gratuito para notas de corretagem no formato SINACOR que não requer conexão com internet ou compartilhamento de suas notas de corretagem.
O objetivo inicial é fornecer um resumo simples da quantidade de cotas de cada ativo, preço médio e total do patrimônio.
- Add all of your pdf notes to the
pdf
directory. - Open a terminal window and navigate to the repo's root.
- Run the script
parser.py
$ python .\parser.py
⚠️ CAUTION : This tool is under development and might generate wrong results. Thus, I don't take any responsability for the reliability of the generated data.
If you're running your script from the repo's root, create a parser
object with:
from sinacor_parser import SinacorParser
parser = SinacorParser()
By default, the pdfs with broker notes are read from the .\pdf
directory. If you wish to read from anywhere else, use the pdf_directory
keyword :
parser = SinacorParser(pdf_directory="full_path_to_directory")
To start reading the pdfs, run :
report, negotiations = parser.process()
where report
and negotiations
are dataframes with the extracted data.
Finally, to export the data to a spreadsheet use:
parser.export()
or
parser.export(output_name="my_name_without_extension")
to specify the name of the spreadsheet. If no keyword is provided, the default name of the output is output.xlsx
and it's saved to the .\output
directory.
- Implement import as module
- Reorganize files for repo
- Split reports by cpf
- Track sales
- Calculate DARF for sales
- Implement export to spreadsheet
- Read files with multiple pages
- Skip repeated notes
- Adicionar exportação de
csv