glourencoffee / pycvm

Python library for processing data from CVM
MIT License
2 stars 0 forks source link

Download files from Data Portal #6

Open glourencoffee opened 2 years ago

glourencoffee commented 2 years ago

Description

As a library user, I want to download files from CVM's Data Portal using this library.

Challenge

Having to download a CVM file to my filesystem and find it when I only care about using it with this library. Moreover, I have to know the URL of CVM's Data Portal where I can download the files, when this library could just tell me.

Benefit

Abstraction

Acceptance criteria

Additional context

Here is how the feature could look like:

>>> import cvm
>>> cvm.download_url()
'https://dados.cvm.gov.br/'
>>> response = cvm.download(cvm.DocumentType.DFP, 2010)