import os
from urllib.request import urlretrieve

def fetch_latest_backup(destination_path,
                        aws_bucket='serenata-de-amor-data',
                        aws_region='s3-sa-east-1'):
    files = ['2016-08-08-current-year.xz',
             '2016-08-08-last-year.xz',
             '2016-08-08-previous-years.xz',
             '2016-08-08-ceap-datasets.md',
             '2016-08-08-datasets-format.html',
             '2016-09-03-companies.xz',
             '2016-11-11-congressperson-relatives.xz',
             '2016-11-19-current-year.xz',
             '2016-11-19-last-year.xz',
             '2016-11-19-previous-years.xz',
             '2016-11-19-reimbursements.xz',
             '2016-11-28-congressperson-civil-names.xz']
    for filename in files:
        url = 'https://{}.amazonaws.com/{}/{}'.format(aws_region,
                                                      aws_bucket,
                                                      filename)
        filepath = os.path.join(destination_path, filename)
        if not os.path.exists(filepath):
            urlretrieve(url, filepath)

import os
from urllib.request import urlretrieve

def fetch_latest_backup(destination_path,
                        aws_bucket='serenata-de-amor-data',
                        aws_region='s3-sa-east-1'):
    files = ['2016-08-08-current-year.xz',
             '2016-08-08-last-year.xz',
             '2016-08-08-previous-years.xz',
             '2016-08-08-ceap-datasets.md',
             '2016-08-08-datasets-format.html',
             '2016-09-03-companies.xz',
             '2016-11-11-congressperson-relatives.xz',
             '2016-11-19-current-year.xz',
             '2016-11-19-last-year.xz',
             '2016-11-19-previous-years.xz',
             '2016-11-19-reimbursements.xz',
             '2016-11-28-congressperson-civil-names.xz',
             '2016-11-29-yelp-companies.xz']
    for filename in files:
        url = 'https://{}.amazonaws.com/{}/{}'.format(aws_region,
                                                      aws_bucket,
                                                      filename)
        filepath = os.path.join(destination_path, filename)
        if not os.path.exists(filepath):
            urlretrieve(url, filepath)

Add Yelp companies dataset