src/download_raw_data.py
def download_raw_data():
    """
    Master script for download raw data from ONS
    Writes out to rawFilePath in config
    """
    config = utils.read_config()
    # Retrieve all series and save to file with value name/key in title
    for i, key in enumerate(config['timeSeries'].keys()):
        print('Downloading '+key)
        data = grab_ons_time_series_data(*config['timeSeries'][key])
        output_dir = os.path.join(
            config['data']['rawFilePath'], key+'_data.txt')
        with open(output_dir, 'w') as outfile:
            json.dump(data, outfile)

    Master script for download raw data from ONS
    Writes out to rawFilePath in config
    
Master script for download raw data from ONS
Writes out to rawFilePath in config
Master script for download raw data from ONS Writes out to rawFilePath in config
def download_raw_data():
    config = utils.read_config()
    for i, key in enumerate(config['timeSeries'].keys()):
        print('Downloading '+key)
        data = grab_ons_time_series_data(*config['timeSeries'][key])
        output_dir = os.path.join(
            config['data']['rawFilePath'], key+'_data.txt')
        with open(output_dir, 'w') as outfile:
            json.dump(data, outfile)
def download_raw_data ( ) : config = utils . read_config ( ) for i , key in enumerate ( config [ 'timeSeries' ] . keys ( ) ) : print ( 'Downloading ' + key ) data = grab_ons_time_series_data ( * config [ 'timeSeries' ] [ key ] ) output_dir = os . path . join ( config [ 'data' ] [ 'rawFilePath' ] , key + '_data.txt' ) with open ( output_dir , 'w' ) as outfile : json . dump ( data , outfile )
Master script for download raw data from ONS
Writes out to rawFilePath in config
Master script for download raw data from ONS Writes out to rawFilePath in config
"""
    Master script for download raw data from ONS
    Writes out to rawFilePath in config
    """ # Retrieve all series and save to file with value name/key in title