Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Substitui json por csv no dados extraídos #78

Merged
merged 3 commits into from
Feb 15, 2021
Merged

Conversation

rbelem
Copy link
Contributor

@rbelem rbelem commented Feb 13, 2021

Para salvar os dados extraídos em json era necessário guardar os dados em memória, num dicionário.
Com csv podemos escrever diretamente no arquivo sem precisar guardar em memória.

@rbelem rbelem requested a review from pvfrota February 13, 2021 23:14
@rbelem rbelem force-pushed the replace-json-by-csv branch 3 times, most recently from 91de129 to 75c4557 Compare February 14, 2021 23:33
@@ -221,11 +238,13 @@ def process(self):

i += 1

for entry in data:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creio que aqui nesse caso nunca vai existir mais de uma entrada nesse array data, certo?

Será que ele é realmente necessário?

Para salvar em json era necessário guardar os dados em memória, num dicionário.
Com csv podemos escrever diretamente no arquivo sem guardar em memória.
@pvfrota pvfrota force-pushed the replace-json-by-csv branch from 69660d5 to bd61d16 Compare February 15, 2021 00:20
@pvfrota pvfrota force-pushed the replace-json-by-csv branch from bd61d16 to 32340f0 Compare February 15, 2021 00:24
@pvfrota pvfrota merged commit b53a4f9 into master Feb 15, 2021
@pvfrota pvfrota deleted the replace-json-by-csv branch February 15, 2021 00:25
@pvfrota pvfrota linked an issue Feb 15, 2021 that may be closed by this pull request
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disponibilizar nossa base de dados completa em .csv
2 participants