def post_processing( input, output ): print "post processing %s into %s..." % (input, output) processed_file = open( output, 'w' ) for record in iter_records(input): post_process_record( record ) processed_file.write( json.dumps(record) + '\n' )
def post_processing( input, output, creation_date ): print "post processing %s into %s..." % (input, output) processed_file = open( output, 'w' ) for record in iter_records(input): add_history_field( record, creation_date ) exemption_tables_scraper.post_process_record( record ) exemption_extended_scraper.post_process_record( record ) processed_file.write( json.dumps(record) + '\n' ) processed_file.close()