Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
royopa committed Sep 30, 2020
1 parent 531db84 commit 97ecdaf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scraper.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
# coding: utf-8
import os
import shutil
from datetime import datetime

import pandas as pd
Expand Down Expand Up @@ -101,3 +102,8 @@ def formata_indicador(valor, descricao):
print("Error occurred:", e)

print('Importação realizada com sucesso')

# rename file
print('Renomeando arquivo sqlite')
if os.path.exists('scraperwiki.sqlite'):
shutil.copy('scraperwiki.sqlite', 'data.sqlite')

0 comments on commit 97ecdaf

Please sign in to comment.