Skip to content

Commit

Permalink
Update importa_arquivo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
royopa committed Sep 30, 2020
1 parent 0fb149c commit ba92926
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion importa_arquivo.py
Expand Up @@ -6,6 +6,7 @@
from datetime import datetime

import pandas as pd
os.environ['SCRAPERWIKI_DATABASE_NAME'] = 'sqlite:///data.sqlite'
import scraperwiki
from chardet.universaldetector import UniversalDetector

Expand Down Expand Up @@ -68,7 +69,7 @@ def main():
print('Salvando resultado capturado no arquivo', file_path)
df.to_csv(file_path, mode='a', index=False)

print('Importing {} items'.format(len(df)))
#print('Importing {} items'.format(len(df)))

for index, row in enumerate(df.to_dict('records')):
print(f'{index+1} de {len(df)}')
Expand Down

0 comments on commit ba92926

Please sign in to comment.